fix: increase request_queue_size for UNIX sockets to 1000

Default value is 5.
This setting was lost during refactoring in commit bf0f6e2303
This commit is contained in:
link2xt
2024-10-26 20:23:20 +00:00
parent 3e646efee9
commit 7f3f69fa72
2 changed files with 8 additions and 1 deletions

View File

@@ -2,6 +2,9 @@
## untagged
- increase `request_queue_size` for UNIX sockets to 1000.
([#437](https://github.com/deltachat/chatmail/pull/437))
- query autoritative nameserver to bypass DNS cache
([#424](https://github.com/deltachat/chatmail/pull/424))

View File

@@ -87,8 +87,12 @@ class DictProxy:
except FileNotFoundError:
pass
with ThreadingUnixStreamServer(socket, Handler) as server:
with CustomThreadingUnixStreamServer(socket, Handler) as server:
try:
server.serve_forever()
except KeyboardInterrupt:
pass
class CustomThreadingUnixStreamServer(ThreadingUnixStreamServer):
request_queue_size = 1000