Blame iep-3.7-python3.7.patch
|
|
8d02cdc |
--- a/iep/yoton/clientserver.py 2014-05-28 12:34:50.000000000 -0700
|
|
|
8d02cdc |
+++ b/iep/yoton/clientserver.py 2018-08-19 18:53:55.681495806 -0700
|
|
|
8d02cdc |
@@ -44,7 +44,7 @@
|
|
|
8d02cdc |
|
|
|
8d02cdc |
|
|
|
8d02cdc |
class RequestServer(threading.Thread):
|
|
|
8d02cdc |
- """ RequestServer(address, async=False, verbose=0)
|
|
|
8d02cdc |
+ """ RequestServer(address, asynchronous=False, verbose=0)
|
|
|
8d02cdc |
|
|
|
8d02cdc |
Setup a simple server that handles requests similar to a telnet server,
|
|
|
8d02cdc |
or asyncore. Starting the server using run() will run the server in
|
|
|
8d02cdc |
@@ -59,7 +59,7 @@
|
|
|
8d02cdc |
----------
|
|
|
8d02cdc |
address : str
|
|
|
8d02cdc |
Should be of the shape hostname:port.
|
|
|
8d02cdc |
- async : bool
|
|
|
8d02cdc |
+ asynchronous : bool
|
|
|
8d02cdc |
If True, handles each incoming connection in a separate thread.
|
|
|
8d02cdc |
This might be advantageous if a the handle_request() method
|
|
|
8d02cdc |
takes a long time to execute.
|
|
|
8d02cdc |
@@ -79,11 +79,11 @@
|
|
|
8d02cdc |
|
|
|
8d02cdc |
"""
|
|
|
8d02cdc |
|
|
|
8d02cdc |
- def __init__(self, address, async=False, verbose=0):
|
|
|
8d02cdc |
+ def __init__(self, address, asynchronous=False, verbose=0):
|
|
|
8d02cdc |
threading.Thread.__init__(self)
|
|
|
8d02cdc |
|
|
|
8d02cdc |
# Store whether to handle requests asynchronously
|
|
|
8d02cdc |
- self._async = async
|
|
|
8d02cdc |
+ self._asynchronous = asynchronous
|
|
|
8d02cdc |
|
|
|
8d02cdc |
# Verbosity
|
|
|
8d02cdc |
self._verbose = verbose
|
|
|
8d02cdc |
@@ -157,7 +157,7 @@
|
|
|
8d02cdc |
if self._verbose:
|
|
|
8d02cdc |
print('handling request from: '+str(addr))
|
|
|
8d02cdc |
# Handle request
|
|
|
8d02cdc |
- if self._async :
|
|
|
8d02cdc |
+ if self._asynchronous :
|
|
|
8d02cdc |
rh = SocketHandler(self, s)
|
|
|
8d02cdc |
rh.start()
|
|
|
8d02cdc |
else:
|