Software /
code /
prosody
Comparison
plugins/mod_c2s.lua @ 7467:9a73c85baffe
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 08 Jul 2016 15:12:44 +0200 |
parent | 7330:89dd1f86a48a |
parent | 7466:f28fa742def3 |
child | 7542:0f92dc8e8b88 |
comparison
equal
deleted
inserted
replaced
7465:f1923f00b7de | 7467:9a73c85baffe |
---|---|
35 local hosts = prosody.hosts; | 35 local hosts = prosody.hosts; |
36 | 36 |
37 local stream_callbacks = { default_ns = "jabber:client" }; | 37 local stream_callbacks = { default_ns = "jabber:client" }; |
38 local listener = {}; | 38 local listener = {}; |
39 local runner_callbacks = {}; | 39 local runner_callbacks = {}; |
40 | |
41 do | |
42 -- Connection counter resets to 0 on load and reload | |
43 -- Bump it up to current value | |
44 local count = 0; | |
45 for _ in pairs(sessions) do | |
46 count = count + 1; | |
47 end | |
48 measure_connections(count); | |
49 end | |
40 | 50 |
41 --- Stream events handlers | 51 --- Stream events handlers |
42 local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; | 52 local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; |
43 | 53 |
44 function stream_callbacks.streamopened(session, attr) | 54 function stream_callbacks.streamopened(session, attr) |