]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Additional enhancments to pconn session management for origin servers
authorhno <>
Wed, 9 Jul 2003 17:02:28 +0000 (17:02 +0000)
committerhno <>
Wed, 9 Jul 2003 17:02:28 +0000 (17:02 +0000)
split the connection pool for the server on requested port as well
as domain.

src/forward.cc

index 37fb3c4ff3b72d178595e80eaf95055146137cae..c83729302b82a23cf3ce12747e6d87d66e7ce7ca 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: forward.cc,v 1.104 2003/07/06 21:50:56 hno Exp $
+ * $Id: forward.cc,v 1.105 2003/07/09 11:02:28 hno Exp $
  *
  * DEBUG: section 17    Request Forwarding
  * AUTHOR: Duane Wessels
@@ -564,8 +564,10 @@ fwdConnectStart(void *data)
         ctimeout = fs->_peer->connect_timeout > 0 ? fs->_peer->connect_timeout
                    : Config.Timeout.peer_connect;
 
-        if (fs->_peer->options.originserver)
+        if (fs->_peer->options.originserver) {
             domain = fwdState->request->host;
+            port = fwdState->request->port;
+        }
     } else {
         host = fwdState->request->host;
         port = fwdState->request->port;