projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c2a625
)
net.dns: Close voided sockets, so they don't stay in net.server
author
Kim Alvefur
<zash@zash.se>
Sat, 22 Dec 2012 13:20:12 +0000
(14:20 +0100)
committer
Kim Alvefur
<zash@zash.se>
Sat, 22 Dec 2012 13:20:12 +0000
(14:20 +0100)
net/dns.lua
patch
|
blob
|
history
diff --git
a/net/dns.lua
b/net/dns.lua
index 1950ba73e35180f1645c91f8beec7668f75e5ef2..a134ecebc938972a4de8b02074d763eb6f761565 100644
(file)
--- a/
net/dns.lua
+++ b/
net/dns.lua
@@
-643,6
+643,7
@@
function resolver:voidsocket(sock)
self.socket[self.socketset[sock]] = nil;
self.socketset[sock] = nil;
end
+ sock:close();
end
function resolver:socket_wrapper_set(func) -- - - - - - - socket_wrapper_set