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-27 14:20:42 +00:00
parent 3e646efee9
commit 7f3f69fa72
2 changed files with 8 additions and 1 deletions
+3
View File
@@ -2,6 +2,9 @@
## untagged ## 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 - query autoritative nameserver to bypass DNS cache
([#424](https://github.com/deltachat/chatmail/pull/424)) ([#424](https://github.com/deltachat/chatmail/pull/424))
+5 -1
View File
@@ -87,8 +87,12 @@ class DictProxy:
except FileNotFoundError: except FileNotFoundError:
pass pass
with ThreadingUnixStreamServer(socket, Handler) as server: with CustomThreadingUnixStreamServer(socket, Handler) as server:
try: try:
server.serve_forever() server.serve_forever()
except KeyboardInterrupt: except KeyboardInterrupt:
pass pass
class CustomThreadingUnixStreamServer(ThreadingUnixStreamServer):
request_queue_size = 1000