[SR-Dev] git:master: Use shorter default send and SSL handshake timeouts

Klaus Darilion klaus.mailinglists at pernau.at
Sun Mar 29 18:18:07 CEST 2009


Jan Janak wrote:
> Module: sip-router
> Branch: master
> Commit: 2701984ddd24dd074c2e29b6ac6ea22faffdb1b1
> URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2701984ddd24dd074c2e29b6ac6ea22faffdb1b1
> 
> Author: Jan Janak <jan at iptel.org>
> Committer: Jan Janak <jan at iptel.org>
> Date:   Sat Mar 28 12:13:24 2009 +0100
> 
> 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.

As TLS still only works in blocking mode I think a timeout of 5 seconds 
would be better

klaus

> 
> ---
> 
>  modules/tls/tls_mod.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/modules/tls/tls_mod.c b/modules/tls/tls_mod.c
> index f3f56b1..436785f 100644
> --- a/modules/tls/tls_mod.c
> +++ b/modules/tls/tls_mod.c
> @@ -167,8 +167,8 @@ tls_domain_t cli_defaults = {
>  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_log = 3;
>  int tls_session_cache = 0;
> 
> 
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev




More information about the sr-dev mailing list