From ddc15f410cf7e878f7a40635daa645b08e17e92c Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 15 Jun 2009 20:50:56 +0000 Subject: [PATCH] Don't request 'Connection: keep-alive' from the server if keep-alive-timeout is 0. We're not going to reuse the connection anyway. --- loadcfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loadcfg.c b/loadcfg.c index 11b91c79..94cf087f 100644 --- a/loadcfg.c +++ b/loadcfg.c @@ -1,4 +1,4 @@ -const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.101 2009/05/13 18:20:54 fabiankeil Exp $"; +const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.102 2009/05/16 13:27:20 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/loadcfg.c,v $ @@ -908,7 +908,7 @@ struct configuration_spec * load_config(void) if (*arg != '\0') { int timeout = atoi(arg); - if (0 <= timeout) + if (0 < timeout) { config->feature_flags |= RUNTIME_FEATURE_CONNECTION_KEEP_ALIVE; config->keep_alive_timeout = (unsigned int)timeout; -- 2.39.2