]> git.pld-linux.org Git - packages/squid.git/blame - squid-2.5.STABLE14-hierarchy_tag.patch
- todo: switch to /usr/lib/cgi-bin
[packages/squid.git] / squid-2.5.STABLE14-hierarchy_tag.patch
CommitLineData
4a6f377f
PG
1---------------------
2PatchSet 10741
3Date: 2006/06/21 12:25:10
4Author: hno
5Branch: SQUID_2_5
6Tag: (none)
7Log:
8Bug #1605: Parent not always logged to access.log
9
10The patch for Bug #1504 forgot to account for persistent connections,
11causing NONE/- to be logged in the hierarchy field when using a persistent
12peer connection.
13
14A workaround is to set "serverside_persistent_connections off"
15
16Members:
17 src/forward.c:1.82.2.17->1.82.2.18
18
19Index: squid/src/forward.c
20===================================================================
21RCS file: /cvsroot/squid/squid/src/forward.c,v
22retrieving revision 1.82.2.17
23retrieving revision 1.82.2.18
24diff -u -r1.82.2.17 -r1.82.2.18
25--- squid/src/forward.c 10 Mar 2006 22:54:38 -0000 1.82.2.17
26+++ squid/src/forward.c 21 Jun 2006 12:25:10 -0000 1.82.2.18
27@@ -380,6 +380,12 @@
28 if (!fs->peer)
29 fwdState->origin_tries++;
30 comm_add_close_handler(fd, fwdServerClosed, fwdState);
31+ if (fs->peer)
32+ hierarchyNote(&fwdState->request->hier, fs->code, fs->peer->host);
33+ else if (Config.onoff.log_ip_on_direct && fs->code == DIRECT)
34+ hierarchyNote(&fwdState->request->hier, fs->code, fd_table[fd].ipaddr);
35+ else
36+ hierarchyNote(&fwdState->request->hier, fs->code, fwdState->request->host);
37 fwdConnectDone(fd, COMM_OK, fwdState);
38 return;
39 } else {
This page took 0.101601 seconds and 4 git commands to generate.