Software /
code /
prosody
Changeset
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 |
parents | 8908:144666d0ad2f |
children | 8920:2eaa442d81a6 8921:1c2925376315 |
files | plugins/mod_s2s/mod_s2s.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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;