Comparison

plugins/mod_c2s.lua @ 11560:3bbb1af92514

Merge 0.11->trunk
author Matthew Wild <mwild1@gmail.com>
date Thu, 13 May 2021 11:17:13 +0100
parent 11524:6de302b53a3e
parent 11540:1937b3c3efb5
child 11608:b2610460d9ab
comparison
equal deleted inserted replaced
11538:30feeb4d9d0b 11560:3bbb1af92514
25 local log = module._log; 25 local log = module._log;
26 26
27 local c2s_timeout = module:get_option_number("c2s_timeout", 300); 27 local c2s_timeout = module:get_option_number("c2s_timeout", 300);
28 local stream_close_timeout = module:get_option_number("c2s_close_timeout", 5); 28 local stream_close_timeout = module:get_option_number("c2s_close_timeout", 5);
29 local opt_keepalives = module:get_option_boolean("c2s_tcp_keepalives", module:get_option_boolean("tcp_keepalives", true)); 29 local opt_keepalives = module:get_option_boolean("c2s_tcp_keepalives", module:get_option_boolean("tcp_keepalives", true));
30 local stanza_size_limit = module:get_option_number("c2s_stanza_size_limit"); -- TODO come up with a sensible default (util.xmppstream defaults to 10M) 30 local stanza_size_limit = module:get_option_number("c2s_stanza_size_limit", 1024*256);
31 31
32 local measure_connections = module:metric("gauge", "connections", "", "Established c2s connections", {"host", "type", "ip_family"}); 32 local measure_connections = module:metric("gauge", "connections", "", "Established c2s connections", {"host", "type", "ip_family"});
33 33
34 local sessions = module:shared("sessions"); 34 local sessions = module:shared("sessions");
35 local core_process_stanza = prosody.core_process_stanza; 35 local core_process_stanza = prosody.core_process_stanza;