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:
Sahil Shah 2025-05-19 15:28:09 -04:00 committed by GitHub
parent 27bd08273c
commit 92f85ff3a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View file

@ -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