diff options
| author | Ronald Oussoren <ronaldoussoren@mac.com> | 2024-01-13 09:48:33 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-13 09:48:33 (GMT) |
| commit | c7d59bd8cfa053e77ae3446c82afff1fd38a4886 (patch) | |
| tree | d2f46697d8bb6bb6e57c07dce3f37bf6497e3993 /Lib/multiprocessing/managers.py | |
| parent | 21f83efd106a19f1d26e049c06678a6729a721f0 (diff) | |
| download | cpython-c7d59bd8cfa053e77ae3446c82afff1fd38a4886.zip cpython-c7d59bd8cfa053e77ae3446c82afff1fd38a4886.tar.gz cpython-c7d59bd8cfa053e77ae3446c82afff1fd38a4886.tar.bz2 | |
gh-101225: Increase the socket backlog when creating a multiprocessing.connection.Listener (#113567)
Increase the backlog for multiprocessing.connection.Listener` objects created
by `multiprocessing.manager` and `multiprocessing.resource_sharer` to
significantly reduce the risk of getting a connection refused error when creating
a `multiprocessing.connection.Connection` to them.
Diffstat (limited to 'Lib/multiprocessing/managers.py')
| -rw-r--r-- | Lib/multiprocessing/managers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/multiprocessing/managers.py b/Lib/multiprocessing/managers.py index 96cebc6..76b915d 100644 --- a/Lib/multiprocessing/managers.py +++ b/Lib/multiprocessing/managers.py @@ -156,7 +156,7 @@ class Server(object): Listener, Client = listener_client[serializer] # do authentication later - self.listener = Listener(address=address, backlog=16) + self.listener = Listener(address=address, backlog=128) self.address = self.listener.address self.id_to_obj = {'0': (None, ())} |
