Allow multiple IDLE GUI/subprocess pairs to exist

simultaneously. Thanks to David Scherer for suggesting
the use of an ephemeral port for the GUI.
Patch 1529142 Weeble.
This commit is contained in:
Kurt B. Kaiser 2009-04-04 07:03:48 +00:00
parent 195374e836
commit 013d6cc0df
3 changed files with 34 additions and 19 deletions

View file

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