]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Properly fix asyncio QUIC shutdown races [#1069].
authorBob Halley <halley@dnspython.org>
Mon, 25 Mar 2024 19:44:36 +0000 (12:44 -0700)
committerBob Halley <halley@dnspython.org>
Mon, 25 Mar 2024 19:44:36 +0000 (12:44 -0700)
commit7fb6e92637a22b798f47f60518d979bee13aee29
treef42eb4e9d4328c2d04e180685a67ac8ef0a2b57e
parent0aa713d72b894135ffe29c3a6853bda4747255ce
Properly fix asyncio QUIC shutdown races [#1069].

There were two basic issues:

1) We did not wake up the sender thread to do work in some cases, and could
   sleep for a long time.
2) asyncio.wait_for() does not instantly run the function, it just schedules
   it, and our guards against lost wakeups were thus in the wrong place.
dns/quic/_asyncio.py