Merge pull request #3046 from cortesi/backlog

Remove socket listen backlog constraint
This commit is contained in:
Aldo Cortesi 2018-04-06 09:59:13 +12:00 committed by GitHub
commit 48426d0a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -547,7 +547,6 @@ class Counter:
class TCPServer:
request_queue_size = 20
def __init__(self, address):
self.address = address
@ -580,7 +579,7 @@ class TCPServer:
self.socket.bind(self.address)
self.address = self.socket.getsockname()
self.socket.listen(self.request_queue_size)
self.socket.listen()
self.handler_counter = Counter()
def connection_thread(self, connection, client_address):