瀏覽代碼

Use shorter default send and SSL handshake timeouts

Instead of 120 seconds we use use 30 seconds by default for both SSL
handshake timeouts and send timeouts, this way the server can detect
connection problems faster.
Jan Janak 16 年之前
父節點
當前提交
2701984ddd
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      modules/tls/tls_mod.c

+ 2 - 2
modules/tls/tls_mod.c

@@ -167,8 +167,8 @@ tls_domain_t cli_defaults = {
 static str tls_method = STR_STATIC_INIT("TLSv1");
 static str tls_method = STR_STATIC_INIT("TLSv1");
 
 
 
 
-int tls_handshake_timeout = 120;
-int tls_send_timeout = 120;
+int tls_handshake_timeout = 30;
+int tls_send_timeout = 30;
 int tls_con_lifetime = 600; /* this value will be adjusted to ticks later */
 int tls_con_lifetime = 600; /* this value will be adjusted to ticks later */
 int tls_log = 3;
 int tls_log = 3;
 int tls_session_cache = 0;
 int tls_session_cache = 0;