Comparison

net/dns.lua @ 5267:a2080e5c4eda

net.dns: Close voided sockets, so they don't stay in net.server
author Kim Alvefur <zash@zash.se>
date Sat, 22 Dec 2012 14:20:12 +0100
parent 5266:5c3a3ef6b769
child 5340:51c9959c21c0
comparison
equal deleted inserted replaced
5266:5c3a3ef6b769 5267:a2080e5c4eda
641 self.socket[sock] = nil; 641 self.socket[sock] = nil;
642 elseif self.socketset[sock] then 642 elseif self.socketset[sock] then
643 self.socket[self.socketset[sock]] = nil; 643 self.socket[self.socketset[sock]] = nil;
644 self.socketset[sock] = nil; 644 self.socketset[sock] = nil;
645 end 645 end
646 sock:close();
646 end 647 end
647 648
648 function resolver:socket_wrapper_set(func) -- - - - - - - socket_wrapper_set 649 function resolver:socket_wrapper_set(func) -- - - - - - - socket_wrapper_set
649 self.socket_wrapper = func; 650 self.socket_wrapper = func;
650 end 651 end