From: Fabian Keil Date: Mon, 15 Jun 2009 20:50:56 +0000 (+0000) Subject: Don't request 'Connection: keep-alive' from the server if keep-alive-timeout is 0. X-Git-Tag: v_3_0_14~95 X-Git-Url: http://www.privoxy.org/gitweb/?a=commitdiff_plain;h=ddc15f410cf7e878f7a40635daa645b08e17e92c;p=privoxy.git Don't request 'Connection: keep-alive' from the server if keep-alive-timeout is 0. We're not going to reuse the connection anyway. --- 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;