]> git.ipfire.org Git - thirdparty/dnspython.git/commit
Ensure asyncio datagram sockets on windows have had a bind() before
authorBob Halley <halley@dnspython.org>
Fri, 15 Dec 2023 02:04:39 +0000 (18:04 -0800)
committerBob Halley <halley@dnspython.org>
Fri, 15 Dec 2023 02:04:39 +0000 (18:04 -0800)
commitadfc942725bd36d28ec53f7e5480ace9eb543bd8
tree8c4d9fc0e9214c6851a2c3e4cdc0020c426abab7
parent143c264ce5f294fb39af21c133b9ade9ffc2567b
Ensure asyncio datagram sockets on windows have had a bind() before
recvfrom().

The fix for [#637] erroneously concluded that that windows asyncio
needed connected datagram sockets, but subsequent further
investation showed that the actual problem was that windows wants
an unconnected datagram socket to be bound before recvfrom is called.
Linux autobinds in this case to the wildcard address and port, so
that's why we didn't see any problems there.  We now ensure that
the source is bound.
dns/_asyncio_backend.py
tests/test_async.py