GvR provided solution to the socket rebinding timeout problem.

M PyShell.py
M rpc.py
M run.py
This commit is contained in:
Kurt B. Kaiser 2002-08-05 03:52:10 +00:00
parent 725bb233b9
commit 8dcdb77132
3 changed files with 6 additions and 7 deletions

View file

@ -403,6 +403,7 @@ class RPCClient(SocketIO):
def __init__(self, address, family=socket.AF_INET, type=socket.SOCK_STREAM):
self.sock = socket.socket(family, type)
self.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.sock.bind(address)
self.sock.listen(1)