From: amosjeffries <> Date: Wed, 27 Feb 2008 17:38:21 +0000 (+0000) Subject: Author: rousskov X-Git-Tag: SQUID_3_0_STABLE2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b8cc7c376e12d1d3a1def95d183fe99b52ad8b1;p=thirdparty%2Fsquid.git Author: rousskov Bug 2186: NONE/- due to persistent connections When reusing a persistent server connection, update hierarchy data even if _peer is not set. We can get the destination host info from the request. --- diff --git a/src/forward.cc b/src/forward.cc index 69a2bf2765..d71f2d87ba 100644 --- a/src/forward.cc +++ b/src/forward.cc @@ -1,6 +1,6 @@ /* - * $Id: forward.cc,v 1.168 2007/07/21 16:32:03 hno Exp $ + * $Id: forward.cc,v 1.168.2.1 2008/02/27 10:38:21 amosjeffries Exp $ * * DEBUG: section 17 Request Forwarding * AUTHOR: Duane Wessels @@ -812,8 +812,12 @@ FwdState::connectStart() server_fd = fd; n_tries++; - if (!fs->_peer) + if (!fs->_peer) { origin_tries++; + hierarchyNote(&request->hier, fs->code, request->host); + } else { + hierarchyNote(&request->hier, fs->code, fs->_peer->host); + } comm_add_close_handler(fd, fwdServerClosedWrapper, this);