Software /
code /
prosody
Diff
plugins/mod_s2s/mod_s2s.lua @ 6861:39789f1669cb
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 25 Sep 2015 18:03:44 +0200 |
parent | 6847:c314e9142e9d |
parent | 6848:32327c80710b |
child | 6905:0e81e3dab896 |
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua Thu Sep 24 20:15:19 2015 +0200 +++ b/plugins/mod_s2s/mod_s2s.lua Fri Sep 25 18:03:44 2015 +0200 @@ -614,6 +614,11 @@ end end +function listener.ontimeout(conn) + -- Called instead of onconnect when the connection times out + measure_connections(1); +end + function listener.ondisconnect(conn, err) measure_connections(-1); local session = sessions[conn];