Protect a keepalive flag inside FEATURE_CONNECTION_KEEP_ALIVE ifdef
authorDavid Schmidt <david__schmidt@users.sourceforge.net>
Thu, 11 Jun 2009 14:13:19 +0000 (14:13 +0000)
committerDavid Schmidt <david__schmidt@users.sourceforge.net>
Thu, 11 Jun 2009 14:13:19 +0000 (14:13 +0000)
parsers.c

index 2796c87..6768d3c 100644 (file)
--- a/parsers.c
+++ b/parsers.c
@@ -1,4 +1,4 @@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.176 2009/06/08 16:47:07 fabiankeil Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.177 2009/06/10 12:50:15 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@ -3455,11 +3455,13 @@ static jb_err client_connection_header_adder(struct client_state *csp)
       return JB_ERR_OK;
    }
 
+#ifdef FEATURE_CONNECTION_KEEP_ALIVE
    if ((csp->config->feature_flags & RUNTIME_FEATURE_CONNECTION_KEEP_ALIVE)
       && (csp->http->ssl == 0))
    {
       csp->flags |= CSP_FLAG_CLIENT_CONNECTION_KEEP_ALIVE;
    }
+#endif /* FEATURE_CONNECTION_KEEP_ALIVE */
 
    log_error(LOG_LEVEL_HEADER, "Adding: %s", wanted_header);