mirror of
https://github.com/python/cpython.git
synced 2025-09-16 21:56:14 +00:00
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:
parent
195374e836
commit
013d6cc0df
3 changed files with 34 additions and 19 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue