From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 5 Jul 2009 12:01:45 +0000 (+0000)
Subject: If we decided not to keep the connection to the server alive, don't reuse a remembere... 
X-Git-Tag: v_3_0_14~65
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/developer-manual/static/diff?a=commitdiff_plain;h=cf91b3ff182baed8aff7664e32ca64998402205c;p=privoxy.git

If we decided not to keep the connection to the server alive, don't reuse a remembered connection either.
---

diff --git a/gateway.c b/gateway.c
index d45e3e7b..9088a5cf 100644
--- a/gateway.c
+++ b/gateway.c
@@ -1,4 +1,4 @@
-const char gateway_rcs[] = "$Id: gateway.c,v 1.53 2009/05/16 13:27:20 fabiankeil Exp $";
+const char gateway_rcs[] = "$Id: gateway.c,v 1.54 2009/05/19 17:43:45 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/gateway.c,v $
@@ -598,7 +598,8 @@ jb_socket forwarded_connect(const struct forward_spec * fwd,
    jb_socket sfd = JB_INVALID_SOCKET;
 
 #ifdef FEATURE_CONNECTION_KEEP_ALIVE
-   if ((csp->config->feature_flags & RUNTIME_FEATURE_CONNECTION_SHARING))
+   if ((csp->config->feature_flags & RUNTIME_FEATURE_CONNECTION_SHARING)
+      && !(csp->flags & CSP_FLAG_SERVER_SOCKET_TAINTED))
    {
       sfd = get_reusable_connection(http, fwd);
       if (JB_INVALID_SOCKET != sfd)