36 end)(dns.peek(qname, qtype, qclass)); |
36 end)(dns.peek(qname, qtype, qclass)); |
37 end |
37 end |
38 |
38 |
39 function cancel(handle, call_handler, reason) |
39 function cancel(handle, call_handler, reason) |
40 log("warn", "Cancelling DNS lookup for %s", tostring(handle[3])); |
40 log("warn", "Cancelling DNS lookup for %s", tostring(handle[3])); |
41 dns.cancel(handle, call_handler); |
41 dns.cancel(handle[1], handle[2], handle[3], handle[4], call_handler); |
42 end |
42 end |
43 |
43 |
44 function new_async_socket(sock, resolver) |
44 function new_async_socket(sock, resolver) |
45 local peername = "<unknown>"; |
45 local peername = "<unknown>"; |
46 local listener = {}; |
46 local listener = {}; |