summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2020-08-19 08:24:11 -0700
committerBob Halley <halley@dnspython.org>2020-08-19 08:24:11 -0700
commita9326311ba4e69984c6acc7f7376c16637ec98ca (patch)
tree810cb42c9cb39b4e8d62a8762eac891cea66d511 /dns
parent04d65197c72930fbc2857e7384418d6f045f7aa0 (diff)
downloaddnspython-a9326311ba4e69984c6acc7f7376c16637ec98ca.tar.gz
fix timeout computation in async send_tcp()
Diffstat (limited to 'dns')
-rw-r--r--dns/asyncquery.py2
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)