From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 22 Dec 2009 13:03:30 +0000 (+0000)
Subject: In serve(), don't call forget_connection() if connection sharing is disabled.
X-Git-Tag: v_3_0_16~103
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/@default-cgi@toggle?a=commitdiff_plain;h=f5de9961c392ee0301141399802482c59a048ad6;p=privoxy.git

In serve(), don't call forget_connection() if connection sharing is disabled.
---

diff --git a/jcc.c b/jcc.c
index 7cfa56d7..2fe567bb 100644
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.303 2009/10/29 16:55:29 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.304 2009/11/27 13:46:47 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -2624,7 +2624,10 @@ static void serve(struct client_state *csp)
    if (csp->server_connection.sfd != JB_INVALID_SOCKET)
    {
 #ifdef FEATURE_CONNECTION_SHARING
-      forget_connection(csp->server_connection.sfd);
+      if (csp->config->feature_flags & RUNTIME_FEATURE_CONNECTION_SHARING)
+      {
+         forget_connection(csp->server_connection.sfd);
+      }
 #endif /* def FEATURE_CONNECTION_SHARING */
       close_socket(csp->server_connection.sfd);
    }