Skip to content

Commit

Permalink
fix: increase request_queue_size for UNIX sockets to 1000
Browse files Browse the repository at this point in the history
Default value is 5.
This setting was lost during refactoring in commit bf0f6e2
  • Loading branch information
link2xt committed Oct 27, 2024
1 parent 3e646ef commit 7f3f69f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
6 changes: 5 additions & 1 deletion chatmaild/src/chatmaild/dictproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7f3f69f

Please sign in to comment.