diff options
| author | Bob Halley <halley@dnspython.org> | 2020-08-19 08:24:11 -0700 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2020-08-19 08:24:11 -0700 |
| commit | a9326311ba4e69984c6acc7f7376c16637ec98ca (patch) | |
| tree | 810cb42c9cb39b4e8d62a8762eac891cea66d511 /dns | |
| parent | 04d65197c72930fbc2857e7384418d6f045f7aa0 (diff) | |
| download | dnspython-a9326311ba4e69984c6acc7f7376c16637ec98ca.tar.gz | |
fix timeout computation in async send_tcp()
Diffstat (limited to 'dns')
| -rw-r--r-- | dns/asyncquery.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/asyncquery.py b/dns/asyncquery.py index b792648..8a10dae 100644 --- a/dns/asyncquery.py +++ b/dns/asyncquery.py @@ -294,7 +294,7 @@ async def send_tcp(sock, what, expiration=None): # onto the net tcpmsg = struct.pack("!H", l) + what sent_time = time.time() - await sock.sendall(tcpmsg, expiration) + await sock.sendall(tcpmsg, _timeout(expiration, sent_time)) return (len(tcpmsg), sent_time) |
