Skip to content

Rebuild serve_forever in the asyncio implementation. - #1745

Merged
aaugustin merged 1 commit into
mainfrom
issue-1608
Jul 29, 2026
Merged

Rebuild serve_forever in the asyncio implementation.#1745
aaugustin merged 1 commit into
mainfrom
issue-1608

Conversation

@aaugustin

Copy link
Copy Markdown
Member

The previous implementation merely forwarded to asyncio.Server.serve_forever,
which waits for clients to drop TCP connections, preventing the intended
mechanism to close connections with 1001 going away to kick in.

Fix #1608.

The previous implementation merely forwarded to asyncio.Server.serve_forever,
which waits for clients to drop TCP connections, preventing the intended
mechanism to close connections with 1001 going away to kick in.

Fix #1608.
@aaugustin
aaugustin merged commit 422153c into main Jul 29, 2026
2 checks passed
@aaugustin
aaugustin deleted the issue-1608 branch July 29, 2026 10:57
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.

serve_forever blocks upon cancellation when clients are connected (upstream change in CPython >= 3.12)

1 participant