From: Fabian Keil Date: Sun, 19 Jul 2009 10:04:55 +0000 (+0000) Subject: Don't assume persistence if RUNTIME_FEATURE_CONNECTION_KEEP_ALIVE is disabled. X-Git-Tag: v_3_0_14~15 X-Git-Url: http://www.privoxy.org/gitweb/user-manual/contact.html?a=commitdiff_plain;h=c637f07b43a8663209454070d0c3a5092d981b0a;p=privoxy.git Don't assume persistence if RUNTIME_FEATURE_CONNECTION_KEEP_ALIVE is disabled. --- diff --git a/jcc.c b/jcc.c index d637017e..ca76d7dc 100644 --- a/jcc.c +++ b/jcc.c @@ -1,4 +1,4 @@ -const char jcc_rcs[] = "$Id: jcc.c,v 1.271 2009/07/14 17:50:34 fabiankeil Exp $"; +const char jcc_rcs[] = "$Id: jcc.c,v 1.272 2009/07/14 18:02:25 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/jcc.c,v $ @@ -1418,7 +1418,8 @@ static jb_err parse_client_request(struct client_state *csp) jb_err err; #ifdef FEATURE_CONNECTION_KEEP_ALIVE - if ((!strcmpic(csp->http->ver, "HTTP/1.1")) + if ((csp->flags & RUNTIME_FEATURE_CONNECTION_KEEP_ALIVE) + && (!strcmpic(csp->http->ver, "HTTP/1.1")) && (csp->http->ssl == 0)) { /* Assume persistence until further notice */