Commit 03041d89 authored by Alexandre's avatar Alexandre
Browse files

Display times for debug

parent 68ffc43c
......@@ -581,6 +581,10 @@ class ConnectionDoH(Connection):
def read_result_handle(self, handle):
self.receive(handle)
handle.request.check_response()
print(f'{handle.request.i:3d}', end=' ')
print(f'{handle.pretime * 1000:6.3f} ms', end=' ')
print(f'{handle.time * 1000:6.3f} ms', end=' ')
print(f'{(handle.time - handle.pretime) * 1000:6.3f} ms')
if not silent:
print("Return code %s:\n%s\n" % (handle.request.rcode, handle.request.response))
handle.close()
......@@ -1077,6 +1081,7 @@ for connectTo in ip_set:
if ifile is not None:
name, rtype = get_next_domain(input)
request = create_request(name, qtype=rtype, use_edns=edns, want_dnssec=dnssec, dot=dot)
request.i = i
if not dot:
request.head = head
request.post = post
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment