Merge 0.10->trunk
[prosody.git] / plugins / mod_s2s / mod_s2s.lua
index c0eaea01216b1e68beb9d83684371b785c08e25d..fe674b55d961b7755d808fee9f68733be2dc2e5d 100644 (file)
@@ -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 };