Skip to content

Commit 7eb8121

Browse files
committed
Remove broken async support.
Added ThreadingMixIn at some point when testing different approaches to run server on background. It would add async support which would be awesome, but unfortunately it doesn't work well with the current system so intercept stdout/stderr. See issue #20 that requests this async support for more information about the problems. The issue also contains a potential solution, but it is too big task for 1.1 release.
1 parent 5fd0632 commit 7eb8121

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/robotremoteserver.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,10 @@
2828
if sys.version_info < (3,):
2929
from SimpleXMLRPCServer import SimpleXMLRPCServer
3030
from StringIO import StringIO
31-
from SocketServer import ThreadingMixIn
3231
from xmlrpclib import Binary, ServerProxy
3332
PY2, PY3 = True, False
3433
else:
3534
from io import StringIO
36-
from socketserver import ThreadingMixIn
3735
from xmlrpc.client import Binary, ServerProxy
3836
from xmlrpc.server import SimpleXMLRPCServer
3937
PY2, PY3 = False, True
@@ -187,7 +185,7 @@ def get_keyword_documentation(self, name):
187185
return self._library.get_keyword_documentation(name)
188186

189187

190-
class StoppableXMLRPCServer(ThreadingMixIn, SimpleXMLRPCServer):
188+
class StoppableXMLRPCServer(SimpleXMLRPCServer):
191189
allow_reuse_address = True
192190

193191
def __init__(self, host, port):

0 commit comments

Comments
 (0)