mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
GvR provided solution to the socket rebinding timeout problem.
M PyShell.py M rpc.py M run.py
This commit is contained in:
parent
725bb233b9
commit
8dcdb77132
3 changed files with 6 additions and 7 deletions
|
@ -26,13 +26,13 @@ def main():
|
|||
port = int(sys.argv[1])
|
||||
sys.argv[:] = [""]
|
||||
addr = ("localhost", port)
|
||||
for i in range(12):
|
||||
for i in range(6):
|
||||
time.sleep(i)
|
||||
try:
|
||||
svr = rpc.RPCServer(addr, MyHandler)
|
||||
break
|
||||
except socket.error, err:
|
||||
if i < 5:
|
||||
if i < 3:
|
||||
print>>sys.__stderr__, ".. ",
|
||||
else:
|
||||
print>>sys.__stderr__,"\nPython subprocess socket error: "\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue