• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agronholm / anyio / 38814238320
92%

Build:
DEFAULT BRANCH: master
Ran 15 Oct 2026 10:03PM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
38814238320

push

github

web-flow
Fixed socket aclose() delayed close, missing checkpoint and Windows hang (#1289)

On the asyncio backend, SocketStream, UDPSocket and ConnectedUDPSocket closed through transport.close(), which only schedules the FD-closing connection_lost callback via loop.call_soon. A second, concurrent aclose() -- as
aclose_forcefully() can produce -- therefore returned while the socket was still open, and on Windows closing a UDP socket with a datagram still in flight could hang outright. All three now abort() the transport directly, which also makes DatagramProtocol.closed_event unnecessary.

None of the implementations checkpointed either, so aclose() called inside an already-cancelled scope returned normally instead of raising a cancellation exception. This affected UNIX socket streams and UNIX datagram sockets on
asyncio, and every socket type on Trio.

_RawSocketMixin.aclose() now always closes the raw socket and checkpoints, while still resolving pending receive and send futures only on the first call, so a task blocked in receive() or send() is woken exactly once.

Fixes #1237.
Fixes #1273.
Fixes #1288.

---------

Co-authored-by: Alex Grönholm <alex.gronholm@nextday.fi>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Source Files on build 38814238320
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #38814238320
  • 623a4806 on github
  • Prev Build on master (#38650762364)
  • Next Build on master (#39059961158)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc