Software /
code /
prosody
Diff
plugins/mod_s2s/mod_s2s.lua @ 8267:42fad8465537
mod_s2s: Use a separate resolver object for each outgoing session
Cleaner approach hopefully fixes problems with some peoples' DNS
hanging after a while, failed DNS when a large number of queries
are made at once, and source port re-use.
Related issues: #487, 761, #991, #992, #1001
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 25 Sep 2017 23:12:47 +0100 |
parent | 8234:97b3ca502547 |
child | 8268:e21d82551e05 |
child | 8919:c46c2942b8fe |
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua Mon Sep 25 23:06:00 2017 +0100 +++ b/plugins/mod_s2s/mod_s2s.lua Mon Sep 25 23:12:47 2017 +0100 @@ -174,6 +174,7 @@ -- Stream is authorised, and ready for normal stanzas function mark_connected(session) + local sendq = session.sendq; local from, to = session.from_host, session.to_host; @@ -205,6 +206,7 @@ session.sendq = nil; end + session.resolver = nil; session.ip_hosts = nil; session.srv_hosts = nil; end