diff options
author | Jesse Noller <jnoller@gmail.com> | 2009-03-30 16:37:36 (GMT) |
---|---|---|
committer | Jesse Noller <jnoller@gmail.com> | 2009-03-30 16:37:36 (GMT) |
commit | c5d28a0b034401ba9eb40aa5b8813845b3b4bb7a (patch) | |
tree | f0314ae44e5bb750236aa81d6e0c6313098c0efe /Lib/multiprocessing | |
parent | 6ae7a7d13d2f1497b197f7d1c798536e3abd8b7a (diff) | |
download | cpython-c5d28a0b034401ba9eb40aa5b8813845b3b4bb7a.zip cpython-c5d28a0b034401ba9eb40aa5b8813845b3b4bb7a.tar.gz cpython-c5d28a0b034401ba9eb40aa5b8813845b3b4bb7a.tar.bz2 |
Merge 70717 to 30maint
Diffstat (limited to 'Lib/multiprocessing')
-rw-r--r-- | Lib/multiprocessing/connection.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/multiprocessing/connection.py b/Lib/multiprocessing/connection.py index 1c4d48e..5e94fed 100644 --- a/Lib/multiprocessing/connection.py +++ b/Lib/multiprocessing/connection.py @@ -214,6 +214,7 @@ class SocketListener(object): ''' def __init__(self, address, family, backlog=1): self._socket = socket.socket(getattr(socket, family)) + self._socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) self._socket.bind(address) self._socket.listen(backlog) self._address = self._socket.getsockname() |