diff options
| author | Bob Halley <halley@dnspython.org> | 2020-06-12 13:49:27 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2020-06-12 13:49:27 -0700 |
| commit | 67fc7ed876e7244f0b7b1d55c7f7e57fa69fcaaf (patch) | |
| tree | 563c35e45ada158cc1281ce5d54bc9ae55327d26 /dns/_asyncio_backend.py | |
| parent | c26964b1d880b7b42130d3441c75d116996debc2 (diff) | |
| download | dnspython-67fc7ed876e7244f0b7b1d55c7f7e57fa69fcaaf.tar.gz | |
fix recvfrom, tls timing, and other misc things
Diffstat (limited to 'dns/_asyncio_backend.py')
| -rw-r--r-- | dns/_asyncio_backend.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dns/_asyncio_backend.py b/dns/_asyncio_backend.py index 5f14c4a..f82eb82 100644 --- a/dns/_asyncio_backend.py +++ b/dns/_asyncio_backend.py @@ -61,7 +61,8 @@ class DatagramSocket(dns._asyncbackend.DatagramSocket): # no timeout for asyncio sendto self.transport.sendto(what, destination) - async def recvfrom(self, timeout): + async def recvfrom(self, size, timeout): + # ignore size as there's no way I know to tell protocol about it done = _get_running_loop().create_future() assert self.protocol.recvfrom is None self.protocol.recvfrom = done |
