Don't request 'Connection: keep-alive' from the server if keep-alive-timeout is 0.
authorFabian Keil <fk@fabiankeil.de>
Mon, 15 Jun 2009 20:50:56 +0000 (20:50 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 15 Jun 2009 20:50:56 +0000 (20:50 +0000)
We're not going to reuse the connection anyway.

loadcfg.c

index 11b91c7..94cf087 100644 (file)
--- 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;