Diff

plugins/mod_s2s/mod_s2s.lua @ 8919:c46c2942b8fe

mod_s2s: Close sockets held by resolver (#1170)
author Kim Alvefur <zash@zash.se>
date Sun, 17 Jun 2018 20:02:40 +0200
parent 8267:42fad8465537
child 8920:2eaa442d81a6
child 9068:95ee62b5afef
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua	Sun Jun 10 17:45:49 2018 +0200
+++ b/plugins/mod_s2s/mod_s2s.lua	Sun Jun 17 20:02:40 2018 +0200
@@ -206,6 +206,9 @@
 			session.sendq = nil;
 		end
 
+		if session.resolver then
+			session.resolver._resolver:closeall()
+		end
 		session.resolver = nil;
 		session.ip_hosts = nil;
 		session.srv_hosts = nil;