mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Remove socket listen backlog constraint
I have no idea why we did this, but the default value is 128, and setting it this low drops connections under conditions our users can reasonably be expeted to reach.
This commit is contained in:
parent
2073df9103
commit
a07415783b
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user