Software /
code /
prosody
Diff
plugins/mod_s2s/mod_s2s.lua @ 7467:9a73c85baffe
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 08 Jul 2016 15:12:44 +0200 |
parent | 7451:464a8a8de625 |
parent | 7466:f28fa742def3 |
child | 7542:0f92dc8e8b88 |
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua Thu Jul 07 23:12:25 2016 +0100 +++ b/plugins/mod_s2s/mod_s2s.lua Fri Jul 08 15:12:44 2016 +0200 @@ -46,6 +46,16 @@ local log = module._log; +do + -- Connection counter resets to 0 on load and reload + -- Bump it up to current value + local count = 0; + for _ in pairs(sessions) do + count = count + 1; + end + measure_connections(count); +end + --- Handle stanzas to remote domains local bouncy_stanzas = { message = true, presence = true, iq = true };