Mercurial > prosody-modules
changeset 1264:2db2c03dfb95
mod_s2s_keepalive: Don't send directly on the connection, use sends2s
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 04 Jan 2014 20:01:11 +0100 |
parents | fe29627a5ed8 |
children | 020165014e56 |
files | mod_s2s_keepalive/mod_s2s_keepalive.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_s2s_keepalive/mod_s2s_keepalive.lua Fri Jan 03 16:24:11 2014 -0500 +++ b/mod_s2s_keepalive/mod_s2s_keepalive.lua Sat Jan 04 20:01:11 2014 +0100 @@ -19,7 +19,7 @@ for session in pairs(prosody.incoming_s2s) do if session.type == "s2sin" -- as opposed to _unauthed and (not(keepalive_servers) or keepalive_servers:contains(session.from_host)) then - session.conn:send " "; + session.sends2s " "; -- If the connection is dead, this should make it time out. end end