Changeset

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
parents 5755:9a9c2c254412
children 5758:ebc074918173
files plugins/mod_c2s.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_c2s.lua	Mon Jul 22 18:17:30 2013 +0200
+++ b/plugins/mod_c2s.lua	Wed Jul 24 15:28:36 2013 +0200
@@ -25,7 +25,7 @@
 
 local c2s_timeout = module:get_option_number("c2s_timeout");
 local stream_close_timeout = module:get_option_number("c2s_close_timeout", 5);
-local opt_keepalives = module:get_option_boolean("tcp_keepalives", false);
+local opt_keepalives = module:get_option_boolean("c2s_tcp_keepalives", module:get_option_boolean("tcp_keepalives", true));
 
 local sessions = module:shared("sessions");
 local core_process_stanza = prosody.core_process_stanza;