diff options
author | Kim Alvefur <zash@zash.se> | 2018-06-17 20:02:40 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-06-17 20:02:40 +0200 |
commit | 899924566ef8a30745387efac5003536d3ffd088 (patch) | |
tree | 3855756a7e60338f6c9b75f17316f7a4226ea9b0 /plugins | |
parent | 054cdafd57234e9b22cf6178552df1d1929b86ad (diff) | |
download | prosody-899924566ef8a30745387efac5003536d3ffd088.tar.gz prosody-899924566ef8a30745387efac5003536d3ffd088.zip |
mod_s2s: Close sockets held by resolver (#1170)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index aa7fe8b6..1f38c13a 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -206,6 +206,9 @@ function mark_connected(session) session.sendq = nil; end + if session.resolver then + session.resolver._resolver:closeall() + end session.resolver = nil; session.ip_hosts = nil; session.srv_hosts = nil; |