Skip to content

Make aio server client_timeout an idle timeout - #404

Merged
aisk merged 2 commits into
Thriftpy:masterfrom
aisk:fix-aio-client-timeout
Oct 29, 2026
Merged

aisk merged 2 commits into
Thriftpy:masterfrom
aisk:fix-aio-client-timeout

Conversation

@aisk

@aisk aisk commented Sep 26, 2026

Copy link
Copy Markdown
Member

The aio server wrapped each connection's whole handler coroutine in wait_for(..., client_timeout), so every connection was dropped after 3s by default no matter how busy it was. The timeout now bounds each read and flush like settimeout does on the sync server, and make_aio_server(unix_socket=...) no longer drops the value on the way down.

@aisk
aisk merged commit 7d10f47 into Thriftpy:master Oct 29, 2026
32 checks passed
@aisk
aisk deleted the fix-aio-client-timeout branch October 29, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant