Commit 6b7cf770 authored by Brian May's avatar Brian May

Improve debugging.

parent b26e1ee6
......@@ -221,7 +221,7 @@ def main():
dnshandlers = {}
def dns_req(channel, data):
debug2('Incoming DNS request.\n')
debug2('Incoming DNS request channel=%d.\n' % channel)
h = DnsProxy(mux, channel, data)
handlers.append(h)
dnshandlers[channel] = h
......@@ -243,5 +243,6 @@ def main():
now = time.time()
for channel,h in dnshandlers.items():
if h.timeout < now or not h.ok:
debug3('expiring dnsreqs channel=%d\n' % channel)
del dnshandlers[channel]
h.ok = False
Markdown is supported
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