equal
deleted
inserted
replaced
21 |
21 |
22 local xmlns_xmpp_streams = "urn:ietf:params:xml:ns:xmpp-streams"; |
22 local xmlns_xmpp_streams = "urn:ietf:params:xml:ns:xmpp-streams"; |
23 |
23 |
24 local log = module._log; |
24 local log = module._log; |
25 |
25 |
26 local c2s_timeout = module:get_option_number("c2s_timeout"); |
26 local c2s_timeout = module:get_option_number("c2s_timeout", 300); |
27 local stream_close_timeout = module:get_option_number("c2s_close_timeout", 5); |
27 local stream_close_timeout = module:get_option_number("c2s_close_timeout", 5); |
28 local opt_keepalives = module:get_option_boolean("c2s_tcp_keepalives", module:get_option_boolean("tcp_keepalives", true)); |
28 local opt_keepalives = module:get_option_boolean("c2s_tcp_keepalives", module:get_option_boolean("tcp_keepalives", true)); |
29 |
29 |
30 local measure_connections = module:measure("connections", "amount"); |
30 local measure_connections = module:measure("connections", "amount"); |
31 |
31 |