Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
7465:f1923f00b7de | 7467:9a73c85baffe |
---|---|
43 local sessions = module:shared("sessions"); | 43 local sessions = module:shared("sessions"); |
44 | 44 |
45 local runner_callbacks = {}; | 45 local runner_callbacks = {}; |
46 | 46 |
47 local log = module._log; | 47 local log = module._log; |
48 | |
49 do | |
50 -- Connection counter resets to 0 on load and reload | |
51 -- Bump it up to current value | |
52 local count = 0; | |
53 for _ in pairs(sessions) do | |
54 count = count + 1; | |
55 end | |
56 measure_connections(count); | |
57 end | |
48 | 58 |
49 --- Handle stanzas to remote domains | 59 --- Handle stanzas to remote domains |
50 | 60 |
51 local bouncy_stanzas = { message = true, presence = true, iq = true }; | 61 local bouncy_stanzas = { message = true, presence = true, iq = true }; |
52 local function bounce_sendq(session, reason) | 62 local function bounce_sendq(session, reason) |