mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] gh-101225: Increase the socket backlog when creating a multiprocessing.connection.Listener (GH-113567) (#114018)
gh-101225: Increase the socket backlog when creating a multiprocessing.connection.Listener (GH-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.
(cherry picked from commit c7d59bd8cf
)
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
parent
fa7d8e97c2
commit
2aea0e967a
3 changed files with 6 additions and 2 deletions
|
@ -153,7 +153,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, ())}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue