mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
gh-80184: Set getattr(socket, "SOMAXCONN", 5) as the default queue size for TCPServer (GH-134249)
socketserver.TCPServer default queue size becomes SOMAXCONN instead of 5 when possible.
This commit is contained in:
parent
27bd08273c
commit
92f85ff3a0
3 changed files with 4 additions and 1 deletions
|
@ -441,7 +441,7 @@ class TCPServer(BaseServer):
|
|||
|
||||
socket_type = socket.SOCK_STREAM
|
||||
|
||||
request_queue_size = 5
|
||||
request_queue_size = getattr(socket, "SOMAXCONN", 5)
|
||||
|
||||
allow_reuse_address = False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue