Skip to content

fix(src): Close connections to API clients when shutting down#219

Merged
christgau merged 2 commits intochristgau:masterfrom
aleasto:wait_closed
Dec 26, 2024
Merged

fix(src): Close connections to API clients when shutting down#219
christgau merged 2 commits intochristgau:masterfrom
aleasto:wait_closed

Conversation

@aleasto
Copy link
Contributor

@aleasto aleasto commented Oct 11, 2024

This effectively re-implements asyncio.Server::close_clients which is only available in python3.13.

In python3.12 asyncio.Server::wait_closed will hang unless these sockets are closed: python/cpython#104344

christgau and others added 2 commits December 23, 2024 23:49
This effectively re-implements asyncio.Server::close_clients which
is only available in python3.13.

In python3.12 asyncio.Server::wait_closed will hang unless these
sockets are closed: python/cpython#104344

Co-authored-by: Steffen Christgau <mail@s14u.de>
@christgau christgau merged commit 147c903 into christgau:master Dec 26, 2024
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.

asyncio.Server.wait_closed() appears to hang indefinitely in 3.12.0a7

2 participants