aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s/mod_s2s.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-07-08 15:12:44 +0200
committerKim Alvefur <zash@zash.se>2016-07-08 15:12:44 +0200
commit8c0ca748b53ca43d707d86590f666bda5e908a81 (patch)
tree6af93350c7e5736376dcee4101e54b940539a50e /plugins/mod_s2s/mod_s2s.lua
parent02640bdb566f49709c408de4d8a10b42279a6431 (diff)
parentddccdcd00d24514e5a9bafad9d5789f674bd8770 (diff)
downloadprosody-8c0ca748b53ca43d707d86590f666bda5e908a81.tar.gz
prosody-8c0ca748b53ca43d707d86590f666bda5e908a81.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_s2s/mod_s2s.lua')
-rw-r--r--plugins/mod_s2s/mod_s2s.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua
index c0eaea01..fe674b55 100644
--- a/plugins/mod_s2s/mod_s2s.lua
+++ b/plugins/mod_s2s/mod_s2s.lua
@@ -46,6 +46,16 @@ local runner_callbacks = {};
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 };