Mercurial > prosody-hg
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 |
| parents | 97b3ca502547 |
| children | e21d82551e05 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
