diff --git a/CHANGELOG.md b/CHANGELOG.md index d2aada52..071aa202 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/chatmaild/src/chatmaild/dictproxy.py b/chatmaild/src/chatmaild/dictproxy.py index 56f91c23..a0a7b654 100644 --- a/chatmaild/src/chatmaild/dictproxy.py +++ b/chatmaild/src/chatmaild/dictproxy.py @@ -87,8 +87,12 @@ def handle(self): 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