Software /
code /
prosody
Comparison
plugins/mod_s2s.lua @ 11238:ec84194356d4
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 16 Dec 2020 08:53:57 +0100 |
parent | 11237:plugins/mod_s2s/mod_s2s.lua@49aeae836ad1 |
parent | 11227:plugins/mod_s2s/mod_s2s.lua@d36e44d00ef8 |
child | 11367:9525c4b4e5de |
comparison
equal
deleted
inserted
replaced
11236:b1d7027be61e | 11238:ec84194356d4 |
---|---|
177 end | 177 end |
178 | 178 |
179 local function keepalive(event) | 179 local function keepalive(event) |
180 local session = event.session; | 180 local session = event.session; |
181 if not session.notopen then | 181 if not session.notopen then |
182 return event.session.send(' '); | 182 return event.session.sends2s(' '); |
183 end | 183 end |
184 end | 184 end |
185 | 185 |
186 module:hook("s2s-read-timeout", keepalive, -1); | 186 module:hook("s2s-read-timeout", keepalive, -1); |
187 | 187 |