Software / code / prosody
Comparison
plugins/mod_c2s.lua @ 5757:b5ba004beb0a
mod_c2s: Change default of tcp_keepalives to true, and make it individually configurable through c2s_tcp_keepalives
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 24 Jul 2013 15:28:36 +0200 |
| parent | 5571:ae9672f4079a |
| child | 5759:767e29b2cd3a |
| child | 6279:16d5b55c8d8d |
comparison
equal
deleted
inserted
replaced
| 5755:9a9c2c254412 | 5757:b5ba004beb0a |
|---|---|
| 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"); |
| 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("tcp_keepalives", false); | 28 local opt_keepalives = module:get_option_boolean("c2s_tcp_keepalives", module:get_option_boolean("tcp_keepalives", true)); |
| 29 | 29 |
| 30 local sessions = module:shared("sessions"); | 30 local sessions = module:shared("sessions"); |
| 31 local core_process_stanza = prosody.core_process_stanza; | 31 local core_process_stanza = prosody.core_process_stanza; |
| 32 local hosts = prosody.hosts; | 32 local hosts = prosody.hosts; |
| 33 | 33 |