diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-07-22 16:45:27 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-07-22 16:45:27 +0100 |
commit | 7c1372811acef73a712f6182c5a268b500b40ee8 (patch) | |
tree | 5838f58bd25e9ecd3a4d8cdf86841f8521e62776 /plugins | |
parent | 1bb28a6635aa77540d10d01624a10367b02bce0a (diff) | |
download | prosody-7c1372811acef73a712f6182c5a268b500b40ee8.tar.gz prosody-7c1372811acef73a712f6182c5a268b500b40ee8.zip |
mod_s2s: Make unauthed session timeout a little more aggressive... otherwise it's possible for sessions to slip under the net and never get killed off
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index f6c20606..1dbdc6ee 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -413,11 +413,9 @@ local function initialize_session(session) return handlestanza(session, stanza); end - local conn = session.conn; add_task(connect_timeout, function () - if session.conn ~= conn or session.connecting - or session.type == "s2sin" or session.type == "s2sout" then - return; -- Ok, we're connect[ed|ing] + if session.type == "s2sin" or session.type == "s2sout" then + return; -- Ok, we're connected end -- Not connected, need to close session and clean up (session.log or log)("debug", "Destroying incomplete session %s->%s due to inactivity", |