# HG changeset patch # User Kim Alvefur # Date 1443186985 -7200 # Node ID 32327c80710bafff411c07fbbf4da9186fcb60e1 # Parent 7eb166fa1f26019a89b19673a1e7db09f0ebac8f mod_s2s: Account for connections that time out in connection count measure diff -r 7eb166fa1f26 -r 32327c80710b plugins/mod_s2s/mod_s2s.lua --- a/plugins/mod_s2s/mod_s2s.lua Thu Sep 24 20:05:23 2015 +0200 +++ b/plugins/mod_s2s/mod_s2s.lua Fri Sep 25 15:16:25 2015 +0200 @@ -611,6 +611,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];