Comparison

net/adns.lua @ 1208:5f992ddc9685

Add log message when DNS lookup is cancelled
author Matthew Wild <mwild1@gmail.com>
date Thu, 28 May 2009 02:17:19 +0100
parent 1207:6842bacddfcb
child 1522:569d58d21612
comparison
equal deleted inserted replaced
1207:6842bacddfcb 1208:5f992ddc9685
24 end 24 end
25 end)(dns.peek(qname, qtype, qclass)); 25 end)(dns.peek(qname, qtype, qclass));
26 end 26 end
27 27
28 function cancel(handle, call_handler) 28 function cancel(handle, call_handler)
29 log("warn", "Cancelling DNS lookup for %s", tostring(handle[3]));
29 dns.cancel(handle); 30 dns.cancel(handle);
30 if call_handler then 31 if call_handler then
31 coroutine.resume(handle[4]); 32 coroutine.resume(handle[4]);
32 end 33 end
33 end 34 end