#
-# $Id: cf.data.pre,v 1.410 2006/02/21 22:23:20 hno Exp $
+# $Id: cf.data.pre,v 1.411 2006/02/26 13:43:05 serassio Exp $
#
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
disable persistent connections with clients and/or servers.
DOC_END
-NAME: balance_on_multiple_ip
+NAME: persistent_connection_after_error
TYPE: onoff
-LOC: Config.onoff.balance_on_multiple_ip
-DEFAULT: on
+LOC: Config.onoff.error_pconns
+DEFAULT: off
DOC_START
- Some load balancing servers based on round robin DNS have been
- found not to preserve user session state across requests
- to different IP addresses.
-
- By default Squid rotates IP's per request. By disabling
- this directive only connection failure triggers rotation.
+ With this directive the use of persistent connections after
+ HTTP errors can be disabled. Useful if you have clients
+ who fail to handle errors on persistent connections proper.
DOC_END
NAME: detect_broken_pconn
after 10 seconds timeout.
DOC_END
+NAME: balance_on_multiple_ip
+TYPE: onoff
+LOC: Config.onoff.balance_on_multiple_ip
+DEFAULT: on
+DOC_START
+ Some load balancing servers based on round robin DNS have been
+ found not to preserve user session state across requests
+ to different IP addresses.
+
+ By default Squid rotates IP's per request. By disabling
+ this directive only connection failure triggers rotation.
+DOC_END
+
NAME: pipeline_prefetch
TYPE: onoff
LOC: Config.onoff.pipeline_prefetch
/*
- * $Id: client_side_reply.cc,v 1.98 2006/02/20 22:43:06 wessels Exp $
+ * $Id: client_side_reply.cc,v 1.99 2006/02/26 13:43:05 serassio Exp $
*
* DEBUG: section 88 Client-side Reply Routines
* AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
request->flags.proxy_keepalive = 0;
}
+ if (!Config.onoff.error_pconns && reply->sline.status >= 400 && !request->flags.must_keepalive) {
+ debug(33, 3) ("clientBuildReplyHeader: Error, don't keep-alive\n");
+ request->flags.proxy_keepalive = 0;
+ }
+
if (!Config.onoff.client_pconns && !request->flags.must_keepalive)
request->flags.proxy_keepalive = 0;
/*
- * $Id: structs.h,v 1.533 2006/01/03 17:22:31 wessels Exp $
+ * $Id: structs.h,v 1.534 2006/02/26 13:43:05 serassio Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
int ignore_unknown_nameservers;
int client_pconns;
int server_pconns;
+ int error_pconns;
#if USE_CACHE_DIGESTS
int digest_generation;