Skip to content

Commit

Permalink
Use HTTP/1.1 in XMLRPC Server (#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrrx authored and mikepurvis committed Apr 23, 2018
1 parent e96c407 commit 5e2b38e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/rosgraph/src/rosgraph/xmlrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ def isstring(s):
return isinstance(s, str)

class SilenceableXMLRPCRequestHandler(SimpleXMLRPCRequestHandler):

protocol_version = 'HTTP/1.1'

def log_message(self, format, *args):
if 0:
SimpleXMLRPCRequestHandler.log_message(self, format, *args)
Expand All @@ -86,6 +89,9 @@ class ThreadingXMLRPCServer(socketserver.ThreadingMixIn, SimpleXMLRPCServer):
Adds ThreadingMixin to SimpleXMLRPCServer to support multiple concurrent
requests via threading. Also makes logging toggleable.
"""

daemon_threads = True

def __init__(self, addr, log_requests=1):
"""
Overrides SimpleXMLRPCServer to set option to allow_reuse_address.
Expand Down

0 comments on commit 5e2b38e

Please sign in to comment.