diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2007-03-18 11:49:07 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2007-03-18 11:49:07 +0000 |
commit | f2d474a5f0e1358a352827a201a2e9ffcf590c3d (patch) | |
tree | fdc6992adf690c52b802ea0674c65358166eef01 | |
parent | 91bfba3a2ca4b351477a78e6aaff6f5502e08f58 (diff) | |
download | ports-f2d474a5f0e1358a352827a201a2e9ffcf590c3d.tar.gz ports-f2d474a5f0e1358a352827a201a2e9ffcf590c3d.zip |
- Update to 2.6.STABLE11.
- Update the ICAP client patchset to not remove a specific function call;
this should fix timeout issues reported on the squid-dev list
PR: 110471
Submitted by: Thomas-Martin Seck <tmseck@netcologne.de> (maintainer)
Notes
Notes:
svn path=/head/; revision=187631
-rw-r--r-- | www/squid/Makefile | 4 | ||||
-rw-r--r-- | www/squid/distinfo | 6 | ||||
-rw-r--r-- | www/squid/files/icap-2.6-core.patch | 47 | ||||
-rw-r--r-- | www/squid30/Makefile | 4 | ||||
-rw-r--r-- | www/squid30/distinfo | 6 | ||||
-rw-r--r-- | www/squid30/files/icap-2.6-core.patch | 47 | ||||
-rw-r--r-- | www/squid31/Makefile | 4 | ||||
-rw-r--r-- | www/squid31/distinfo | 6 | ||||
-rw-r--r-- | www/squid31/files/icap-2.6-core.patch | 47 |
9 files changed, 78 insertions, 93 deletions
diff --git a/www/squid/Makefile b/www/squid/Makefile index fdbeb259a318..f49fea249141 100644 --- a/www/squid/Makefile +++ b/www/squid/Makefile @@ -75,7 +75,7 @@ # Enable experimental multicast notification of cachemisses. PORTNAME= squid -PORTVERSION= 2.6.10 +PORTVERSION= 2.6.11 CATEGORIES= www MASTER_SITES= ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ ftp://ftp.vistech.net/pub/squid/%SUBDIR%/ \ @@ -87,7 +87,7 @@ MASTER_SITES= ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ ftp://ftp.ccs.neu.edu/pub/mirrors/squid.nlanr.net/pub/%SUBDIR%/ \ ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,} MASTER_SITE_SUBDIR= squid-2/STABLE -DISTNAME= squid-2.6.STABLE10 +DISTNAME= squid-2.6.STABLE11 DIST_SUBDIR= squid2.6 PATCH_SITES= http://www.squid-cache.org/%SUBDIR%/ \ diff --git a/www/squid/distinfo b/www/squid/distinfo index f0a86729776c..7b0fe07e0c69 100644 --- a/www/squid/distinfo +++ b/www/squid/distinfo @@ -1,3 +1,3 @@ -MD5 (squid2.6/squid-2.6.STABLE10.tar.bz2) = 8a4b084a4ed345ef92fadf97d583cb10 -SHA256 (squid2.6/squid-2.6.STABLE10.tar.bz2) = b87f203d0138999478fdbfc7905d7e7e3bb254acdf7ff5823218867e0af99159 -SIZE (squid2.6/squid-2.6.STABLE10.tar.bz2) = 1263023 +MD5 (squid2.6/squid-2.6.STABLE11.tar.bz2) = 30b38de0a0a7ffce4350f3ca638e9b2e +SHA256 (squid2.6/squid-2.6.STABLE11.tar.bz2) = 98e7d72efff757e7bea4aa33fd3750e152db9cd1e92de07c3252b1a6fa541490 +SIZE (squid2.6/squid-2.6.STABLE11.tar.bz2) = 1263864 diff --git a/www/squid/files/icap-2.6-core.patch b/www/squid/files/icap-2.6-core.patch index 6642e9e9ece4..c3108f986e0c 100644 --- a/www/squid/files/icap-2.6-core.patch +++ b/www/squid/files/icap-2.6-core.patch @@ -16,7 +16,7 @@ cvs diff -u -b -N -kk -rZ-icap-2_6_merge_HEAD -ricap-2_6 See http://devel.squid-cache.org/icap/ for further information about the ICAP client project. -Patch last updated: 2007-03-04 +Patch last updated: 2007-03-18 Note: the patchset needs manual adjustments once in a while because the ICAP developers develop against Squid-2-HEAD and not @@ -2238,12 +2238,8 @@ diff -p -u -b -r1.7 -r1.6.8.2 if (define[$2] != "") Index: src/client_side.c =================================================================== -RCS file: /cvsroot/squid/squid/src/client_side.c,v -retrieving revision 1.154 -retrieving revision 1.89.4.14 -diff -p -u -b -r1.154 -r1.89.4.14 ---- src/client_side.c 11 Dec 2006 00:53:11 -0000 1.154 -+++ src/client_side.c 12 Dec 2006 22:49:44 -0000 1.89.4.14 +--- src/client_side.c.orig Wed Mar 14 15:11:26 2007 ++++ src/client_side.c Sun Mar 18 11:16:30 2007 @@ -109,7 +109,7 @@ static const char *const crlf = "\r\n"; static CWCB clientWriteComplete; static CWCB clientWriteBodyComplete; @@ -2300,7 +2296,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientCreateStoreEntry(clientHttpRequest * h, method_t m, request_flags flags) { StoreEntry *e; -@@ -638,6 +641,10 @@ clientRedirectDone(void *data, char *res +@@ -640,6 +643,10 @@ clientRedirectDone(void *data, char *res if (urlgroup && *urlgroup) http->request->urlgroup = xstrdup(urlgroup); clientInterpretRequestHeaders(http); @@ -2311,7 +2307,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 #if HEADERS_LOG headersLog(0, 1, request->method, request); #endif -@@ -1352,11 +1359,22 @@ httpRequestFree(void *data) +@@ -1368,11 +1375,22 @@ httpRequestFree(void *data) /* Unlink us from the clients request list */ dlinkDelete(&http->node, &http->conn->reqs); dlinkDelete(&http->active, &ClientActiveRequests); @@ -2335,7 +2331,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 connStateFree(int fd, void *data) { ConnStateData *connState = data; -@@ -1376,8 +1394,9 @@ connStateFree(int fd, void *data) +@@ -1392,8 +1410,9 @@ connStateFree(int fd, void *data) authenticateAuthUserRequestUnlock(connState->auth_user_request); connState->auth_user_request = NULL; authenticateOnCloseConnection(connState); @@ -2346,7 +2342,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 if (connState->pinning.fd >= 0) comm_close(connState->pinning.fd); cbdataFree(connState); -@@ -1575,7 +1594,7 @@ clientSetKeepaliveFlag(clientHttpRequest +@@ -1591,7 +1610,7 @@ clientSetKeepaliveFlag(clientHttpRequest } } @@ -2355,7 +2351,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientCheckContentLength(request_t * r) { switch (r->method) { -@@ -1594,7 +1613,7 @@ clientCheckContentLength(request_t * r) +@@ -1610,7 +1629,7 @@ clientCheckContentLength(request_t * r) /* NOT REACHED */ } @@ -2364,7 +2360,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientCachable(clientHttpRequest * http) { request_t *req = http->request; -@@ -1620,7 +1639,7 @@ clientCachable(clientHttpRequest * http) +@@ -1636,7 +1655,7 @@ clientCachable(clientHttpRequest * http) } /* Return true if we can query our neighbors for this object */ @@ -2373,7 +2369,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientHierarchical(clientHttpRequest * http) { const char *url = http->uri; -@@ -3307,7 +3326,7 @@ clientProcessRequest2(clientHttpRequest +@@ -3302,7 +3321,7 @@ clientProcessRequest2(clientHttpRequest return LOG_TCP_HIT; } @@ -2382,7 +2378,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientProcessRequest(clientHttpRequest * http) { char *url = http->uri; -@@ -3318,6 +3337,11 @@ clientProcessRequest(clientHttpRequest * +@@ -3313,6 +3332,11 @@ clientProcessRequest(clientHttpRequest * RequestMethodStr[r->method], url); r->flags.collapsed = 0; @@ -2394,7 +2390,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 if (r->method == METHOD_CONNECT && !http->redirect.status) { http->log_type = LOG_TCP_MISS; #if USE_SSL && SSL_CONNECT_INTERCEPT -@@ -3812,6 +3836,20 @@ clientReadRequest(int fd, void *data) +@@ -3808,6 +3832,20 @@ clientReadRequest(int fd, void *data) (long) conn->in.offset, (long) conn->in.size); len = conn->in.size - conn->in.offset - 1; } @@ -2415,17 +2411,16 @@ diff -p -u -b -r1.154 -r1.89.4.14 statCounter.syscalls.sock.reads++; size = FD_READ_METHOD(fd, conn->in.buf + conn->in.offset, len); if (size > 0) { -@@ -3916,7 +3954,8 @@ clientReadRequest(int fd, void *data) - /* add to the client request queue */ +@@ -3913,6 +3951,8 @@ clientReadRequest(int fd, void *data) dlinkAddTail(http, &http->node, &conn->reqs); conn->nrequests++; -- commSetTimeout(fd, Config.Timeout.lifetime, clientLifetimeTimeout, http); + commSetTimeout(fd, Config.Timeout.lifetime, clientLifetimeTimeout, http); + F->pconn.uses++; + F->pconn.type = 0; if (parser_return_code < 0) { debug(33, 1) ("clientReadRequest: FD %d (%s:%d) Invalid Request\n", fd, fd_table[fd].ipaddr, fd_table[fd].remote_port); err = errorCon(ERR_INVALID_REQ, HTTP_BAD_REQUEST, NULL); -@@ -4086,7 +4125,7 @@ clientReadRequest(int fd, void *data) +@@ -4082,7 +4122,7 @@ clientReadRequest(int fd, void *data) } /* file_read like function, for reading body content */ @@ -2434,7 +2429,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientReadBody(request_t * request, char *buf, size_t size, CBCB * callback, void *cbdata) { ConnStateData *conn = request->body_reader_data; -@@ -4215,7 +4254,7 @@ clientProcessBody(ConnStateData * conn) +@@ -4211,7 +4251,7 @@ clientProcessBody(ConnStateData * conn) } /* Abort a body request */ @@ -2443,7 +2438,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientAbortBody(request_t * request) { ConnStateData *conn = request->body_reader_data; -@@ -4257,7 +4296,7 @@ requestTimeout(int fd, void *data) +@@ -4253,7 +4293,7 @@ requestTimeout(int fd, void *data) * Some data has been sent to the client, just close the FD */ comm_close(fd); @@ -2452,10 +2447,11 @@ diff -p -u -b -r1.154 -r1.89.4.14 /* * assume its a persistent connection; just close it */ -@@ -4978,6 +5017,52 @@ varyEvaluateMatch(StoreEntry * entry, re +@@ -4974,6 +5014,52 @@ varyEvaluateMatch(StoreEntry * entry, re + } } } - ++ +#if HS_FEAT_ICAP +static int +clientIcapReqMod(clientHttpRequest * http) @@ -2501,10 +2497,9 @@ diff -p -u -b -r1.154 -r1.89.4.14 + return 1; +} +#endif -+ + /* This is a handler normally called by comm_close() */ static void - clientPinnedConnectionClosed(int fd, void *data) Index: src/comm.c =================================================================== RCS file: /cvsroot/squid/squid/src/comm.c,v diff --git a/www/squid30/Makefile b/www/squid30/Makefile index fdbeb259a318..f49fea249141 100644 --- a/www/squid30/Makefile +++ b/www/squid30/Makefile @@ -75,7 +75,7 @@ # Enable experimental multicast notification of cachemisses. PORTNAME= squid -PORTVERSION= 2.6.10 +PORTVERSION= 2.6.11 CATEGORIES= www MASTER_SITES= ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ ftp://ftp.vistech.net/pub/squid/%SUBDIR%/ \ @@ -87,7 +87,7 @@ MASTER_SITES= ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ ftp://ftp.ccs.neu.edu/pub/mirrors/squid.nlanr.net/pub/%SUBDIR%/ \ ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,} MASTER_SITE_SUBDIR= squid-2/STABLE -DISTNAME= squid-2.6.STABLE10 +DISTNAME= squid-2.6.STABLE11 DIST_SUBDIR= squid2.6 PATCH_SITES= http://www.squid-cache.org/%SUBDIR%/ \ diff --git a/www/squid30/distinfo b/www/squid30/distinfo index f0a86729776c..7b0fe07e0c69 100644 --- a/www/squid30/distinfo +++ b/www/squid30/distinfo @@ -1,3 +1,3 @@ -MD5 (squid2.6/squid-2.6.STABLE10.tar.bz2) = 8a4b084a4ed345ef92fadf97d583cb10 -SHA256 (squid2.6/squid-2.6.STABLE10.tar.bz2) = b87f203d0138999478fdbfc7905d7e7e3bb254acdf7ff5823218867e0af99159 -SIZE (squid2.6/squid-2.6.STABLE10.tar.bz2) = 1263023 +MD5 (squid2.6/squid-2.6.STABLE11.tar.bz2) = 30b38de0a0a7ffce4350f3ca638e9b2e +SHA256 (squid2.6/squid-2.6.STABLE11.tar.bz2) = 98e7d72efff757e7bea4aa33fd3750e152db9cd1e92de07c3252b1a6fa541490 +SIZE (squid2.6/squid-2.6.STABLE11.tar.bz2) = 1263864 diff --git a/www/squid30/files/icap-2.6-core.patch b/www/squid30/files/icap-2.6-core.patch index 6642e9e9ece4..c3108f986e0c 100644 --- a/www/squid30/files/icap-2.6-core.patch +++ b/www/squid30/files/icap-2.6-core.patch @@ -16,7 +16,7 @@ cvs diff -u -b -N -kk -rZ-icap-2_6_merge_HEAD -ricap-2_6 See http://devel.squid-cache.org/icap/ for further information about the ICAP client project. -Patch last updated: 2007-03-04 +Patch last updated: 2007-03-18 Note: the patchset needs manual adjustments once in a while because the ICAP developers develop against Squid-2-HEAD and not @@ -2238,12 +2238,8 @@ diff -p -u -b -r1.7 -r1.6.8.2 if (define[$2] != "") Index: src/client_side.c =================================================================== -RCS file: /cvsroot/squid/squid/src/client_side.c,v -retrieving revision 1.154 -retrieving revision 1.89.4.14 -diff -p -u -b -r1.154 -r1.89.4.14 ---- src/client_side.c 11 Dec 2006 00:53:11 -0000 1.154 -+++ src/client_side.c 12 Dec 2006 22:49:44 -0000 1.89.4.14 +--- src/client_side.c.orig Wed Mar 14 15:11:26 2007 ++++ src/client_side.c Sun Mar 18 11:16:30 2007 @@ -109,7 +109,7 @@ static const char *const crlf = "\r\n"; static CWCB clientWriteComplete; static CWCB clientWriteBodyComplete; @@ -2300,7 +2296,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientCreateStoreEntry(clientHttpRequest * h, method_t m, request_flags flags) { StoreEntry *e; -@@ -638,6 +641,10 @@ clientRedirectDone(void *data, char *res +@@ -640,6 +643,10 @@ clientRedirectDone(void *data, char *res if (urlgroup && *urlgroup) http->request->urlgroup = xstrdup(urlgroup); clientInterpretRequestHeaders(http); @@ -2311,7 +2307,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 #if HEADERS_LOG headersLog(0, 1, request->method, request); #endif -@@ -1352,11 +1359,22 @@ httpRequestFree(void *data) +@@ -1368,11 +1375,22 @@ httpRequestFree(void *data) /* Unlink us from the clients request list */ dlinkDelete(&http->node, &http->conn->reqs); dlinkDelete(&http->active, &ClientActiveRequests); @@ -2335,7 +2331,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 connStateFree(int fd, void *data) { ConnStateData *connState = data; -@@ -1376,8 +1394,9 @@ connStateFree(int fd, void *data) +@@ -1392,8 +1410,9 @@ connStateFree(int fd, void *data) authenticateAuthUserRequestUnlock(connState->auth_user_request); connState->auth_user_request = NULL; authenticateOnCloseConnection(connState); @@ -2346,7 +2342,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 if (connState->pinning.fd >= 0) comm_close(connState->pinning.fd); cbdataFree(connState); -@@ -1575,7 +1594,7 @@ clientSetKeepaliveFlag(clientHttpRequest +@@ -1591,7 +1610,7 @@ clientSetKeepaliveFlag(clientHttpRequest } } @@ -2355,7 +2351,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientCheckContentLength(request_t * r) { switch (r->method) { -@@ -1594,7 +1613,7 @@ clientCheckContentLength(request_t * r) +@@ -1610,7 +1629,7 @@ clientCheckContentLength(request_t * r) /* NOT REACHED */ } @@ -2364,7 +2360,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientCachable(clientHttpRequest * http) { request_t *req = http->request; -@@ -1620,7 +1639,7 @@ clientCachable(clientHttpRequest * http) +@@ -1636,7 +1655,7 @@ clientCachable(clientHttpRequest * http) } /* Return true if we can query our neighbors for this object */ @@ -2373,7 +2369,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientHierarchical(clientHttpRequest * http) { const char *url = http->uri; -@@ -3307,7 +3326,7 @@ clientProcessRequest2(clientHttpRequest +@@ -3302,7 +3321,7 @@ clientProcessRequest2(clientHttpRequest return LOG_TCP_HIT; } @@ -2382,7 +2378,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientProcessRequest(clientHttpRequest * http) { char *url = http->uri; -@@ -3318,6 +3337,11 @@ clientProcessRequest(clientHttpRequest * +@@ -3313,6 +3332,11 @@ clientProcessRequest(clientHttpRequest * RequestMethodStr[r->method], url); r->flags.collapsed = 0; @@ -2394,7 +2390,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 if (r->method == METHOD_CONNECT && !http->redirect.status) { http->log_type = LOG_TCP_MISS; #if USE_SSL && SSL_CONNECT_INTERCEPT -@@ -3812,6 +3836,20 @@ clientReadRequest(int fd, void *data) +@@ -3808,6 +3832,20 @@ clientReadRequest(int fd, void *data) (long) conn->in.offset, (long) conn->in.size); len = conn->in.size - conn->in.offset - 1; } @@ -2415,17 +2411,16 @@ diff -p -u -b -r1.154 -r1.89.4.14 statCounter.syscalls.sock.reads++; size = FD_READ_METHOD(fd, conn->in.buf + conn->in.offset, len); if (size > 0) { -@@ -3916,7 +3954,8 @@ clientReadRequest(int fd, void *data) - /* add to the client request queue */ +@@ -3913,6 +3951,8 @@ clientReadRequest(int fd, void *data) dlinkAddTail(http, &http->node, &conn->reqs); conn->nrequests++; -- commSetTimeout(fd, Config.Timeout.lifetime, clientLifetimeTimeout, http); + commSetTimeout(fd, Config.Timeout.lifetime, clientLifetimeTimeout, http); + F->pconn.uses++; + F->pconn.type = 0; if (parser_return_code < 0) { debug(33, 1) ("clientReadRequest: FD %d (%s:%d) Invalid Request\n", fd, fd_table[fd].ipaddr, fd_table[fd].remote_port); err = errorCon(ERR_INVALID_REQ, HTTP_BAD_REQUEST, NULL); -@@ -4086,7 +4125,7 @@ clientReadRequest(int fd, void *data) +@@ -4082,7 +4122,7 @@ clientReadRequest(int fd, void *data) } /* file_read like function, for reading body content */ @@ -2434,7 +2429,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientReadBody(request_t * request, char *buf, size_t size, CBCB * callback, void *cbdata) { ConnStateData *conn = request->body_reader_data; -@@ -4215,7 +4254,7 @@ clientProcessBody(ConnStateData * conn) +@@ -4211,7 +4251,7 @@ clientProcessBody(ConnStateData * conn) } /* Abort a body request */ @@ -2443,7 +2438,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientAbortBody(request_t * request) { ConnStateData *conn = request->body_reader_data; -@@ -4257,7 +4296,7 @@ requestTimeout(int fd, void *data) +@@ -4253,7 +4293,7 @@ requestTimeout(int fd, void *data) * Some data has been sent to the client, just close the FD */ comm_close(fd); @@ -2452,10 +2447,11 @@ diff -p -u -b -r1.154 -r1.89.4.14 /* * assume its a persistent connection; just close it */ -@@ -4978,6 +5017,52 @@ varyEvaluateMatch(StoreEntry * entry, re +@@ -4974,6 +5014,52 @@ varyEvaluateMatch(StoreEntry * entry, re + } } } - ++ +#if HS_FEAT_ICAP +static int +clientIcapReqMod(clientHttpRequest * http) @@ -2501,10 +2497,9 @@ diff -p -u -b -r1.154 -r1.89.4.14 + return 1; +} +#endif -+ + /* This is a handler normally called by comm_close() */ static void - clientPinnedConnectionClosed(int fd, void *data) Index: src/comm.c =================================================================== RCS file: /cvsroot/squid/squid/src/comm.c,v diff --git a/www/squid31/Makefile b/www/squid31/Makefile index fdbeb259a318..f49fea249141 100644 --- a/www/squid31/Makefile +++ b/www/squid31/Makefile @@ -75,7 +75,7 @@ # Enable experimental multicast notification of cachemisses. PORTNAME= squid -PORTVERSION= 2.6.10 +PORTVERSION= 2.6.11 CATEGORIES= www MASTER_SITES= ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ ftp://ftp.vistech.net/pub/squid/%SUBDIR%/ \ @@ -87,7 +87,7 @@ MASTER_SITES= ftp://ftp.squid-cache.org/pub/%SUBDIR%/ \ ftp://ftp.ccs.neu.edu/pub/mirrors/squid.nlanr.net/pub/%SUBDIR%/ \ ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/squid/&,} MASTER_SITE_SUBDIR= squid-2/STABLE -DISTNAME= squid-2.6.STABLE10 +DISTNAME= squid-2.6.STABLE11 DIST_SUBDIR= squid2.6 PATCH_SITES= http://www.squid-cache.org/%SUBDIR%/ \ diff --git a/www/squid31/distinfo b/www/squid31/distinfo index f0a86729776c..7b0fe07e0c69 100644 --- a/www/squid31/distinfo +++ b/www/squid31/distinfo @@ -1,3 +1,3 @@ -MD5 (squid2.6/squid-2.6.STABLE10.tar.bz2) = 8a4b084a4ed345ef92fadf97d583cb10 -SHA256 (squid2.6/squid-2.6.STABLE10.tar.bz2) = b87f203d0138999478fdbfc7905d7e7e3bb254acdf7ff5823218867e0af99159 -SIZE (squid2.6/squid-2.6.STABLE10.tar.bz2) = 1263023 +MD5 (squid2.6/squid-2.6.STABLE11.tar.bz2) = 30b38de0a0a7ffce4350f3ca638e9b2e +SHA256 (squid2.6/squid-2.6.STABLE11.tar.bz2) = 98e7d72efff757e7bea4aa33fd3750e152db9cd1e92de07c3252b1a6fa541490 +SIZE (squid2.6/squid-2.6.STABLE11.tar.bz2) = 1263864 diff --git a/www/squid31/files/icap-2.6-core.patch b/www/squid31/files/icap-2.6-core.patch index 6642e9e9ece4..c3108f986e0c 100644 --- a/www/squid31/files/icap-2.6-core.patch +++ b/www/squid31/files/icap-2.6-core.patch @@ -16,7 +16,7 @@ cvs diff -u -b -N -kk -rZ-icap-2_6_merge_HEAD -ricap-2_6 See http://devel.squid-cache.org/icap/ for further information about the ICAP client project. -Patch last updated: 2007-03-04 +Patch last updated: 2007-03-18 Note: the patchset needs manual adjustments once in a while because the ICAP developers develop against Squid-2-HEAD and not @@ -2238,12 +2238,8 @@ diff -p -u -b -r1.7 -r1.6.8.2 if (define[$2] != "") Index: src/client_side.c =================================================================== -RCS file: /cvsroot/squid/squid/src/client_side.c,v -retrieving revision 1.154 -retrieving revision 1.89.4.14 -diff -p -u -b -r1.154 -r1.89.4.14 ---- src/client_side.c 11 Dec 2006 00:53:11 -0000 1.154 -+++ src/client_side.c 12 Dec 2006 22:49:44 -0000 1.89.4.14 +--- src/client_side.c.orig Wed Mar 14 15:11:26 2007 ++++ src/client_side.c Sun Mar 18 11:16:30 2007 @@ -109,7 +109,7 @@ static const char *const crlf = "\r\n"; static CWCB clientWriteComplete; static CWCB clientWriteBodyComplete; @@ -2300,7 +2296,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientCreateStoreEntry(clientHttpRequest * h, method_t m, request_flags flags) { StoreEntry *e; -@@ -638,6 +641,10 @@ clientRedirectDone(void *data, char *res +@@ -640,6 +643,10 @@ clientRedirectDone(void *data, char *res if (urlgroup && *urlgroup) http->request->urlgroup = xstrdup(urlgroup); clientInterpretRequestHeaders(http); @@ -2311,7 +2307,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 #if HEADERS_LOG headersLog(0, 1, request->method, request); #endif -@@ -1352,11 +1359,22 @@ httpRequestFree(void *data) +@@ -1368,11 +1375,22 @@ httpRequestFree(void *data) /* Unlink us from the clients request list */ dlinkDelete(&http->node, &http->conn->reqs); dlinkDelete(&http->active, &ClientActiveRequests); @@ -2335,7 +2331,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 connStateFree(int fd, void *data) { ConnStateData *connState = data; -@@ -1376,8 +1394,9 @@ connStateFree(int fd, void *data) +@@ -1392,8 +1410,9 @@ connStateFree(int fd, void *data) authenticateAuthUserRequestUnlock(connState->auth_user_request); connState->auth_user_request = NULL; authenticateOnCloseConnection(connState); @@ -2346,7 +2342,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 if (connState->pinning.fd >= 0) comm_close(connState->pinning.fd); cbdataFree(connState); -@@ -1575,7 +1594,7 @@ clientSetKeepaliveFlag(clientHttpRequest +@@ -1591,7 +1610,7 @@ clientSetKeepaliveFlag(clientHttpRequest } } @@ -2355,7 +2351,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientCheckContentLength(request_t * r) { switch (r->method) { -@@ -1594,7 +1613,7 @@ clientCheckContentLength(request_t * r) +@@ -1610,7 +1629,7 @@ clientCheckContentLength(request_t * r) /* NOT REACHED */ } @@ -2364,7 +2360,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientCachable(clientHttpRequest * http) { request_t *req = http->request; -@@ -1620,7 +1639,7 @@ clientCachable(clientHttpRequest * http) +@@ -1636,7 +1655,7 @@ clientCachable(clientHttpRequest * http) } /* Return true if we can query our neighbors for this object */ @@ -2373,7 +2369,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientHierarchical(clientHttpRequest * http) { const char *url = http->uri; -@@ -3307,7 +3326,7 @@ clientProcessRequest2(clientHttpRequest +@@ -3302,7 +3321,7 @@ clientProcessRequest2(clientHttpRequest return LOG_TCP_HIT; } @@ -2382,7 +2378,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientProcessRequest(clientHttpRequest * http) { char *url = http->uri; -@@ -3318,6 +3337,11 @@ clientProcessRequest(clientHttpRequest * +@@ -3313,6 +3332,11 @@ clientProcessRequest(clientHttpRequest * RequestMethodStr[r->method], url); r->flags.collapsed = 0; @@ -2394,7 +2390,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 if (r->method == METHOD_CONNECT && !http->redirect.status) { http->log_type = LOG_TCP_MISS; #if USE_SSL && SSL_CONNECT_INTERCEPT -@@ -3812,6 +3836,20 @@ clientReadRequest(int fd, void *data) +@@ -3808,6 +3832,20 @@ clientReadRequest(int fd, void *data) (long) conn->in.offset, (long) conn->in.size); len = conn->in.size - conn->in.offset - 1; } @@ -2415,17 +2411,16 @@ diff -p -u -b -r1.154 -r1.89.4.14 statCounter.syscalls.sock.reads++; size = FD_READ_METHOD(fd, conn->in.buf + conn->in.offset, len); if (size > 0) { -@@ -3916,7 +3954,8 @@ clientReadRequest(int fd, void *data) - /* add to the client request queue */ +@@ -3913,6 +3951,8 @@ clientReadRequest(int fd, void *data) dlinkAddTail(http, &http->node, &conn->reqs); conn->nrequests++; -- commSetTimeout(fd, Config.Timeout.lifetime, clientLifetimeTimeout, http); + commSetTimeout(fd, Config.Timeout.lifetime, clientLifetimeTimeout, http); + F->pconn.uses++; + F->pconn.type = 0; if (parser_return_code < 0) { debug(33, 1) ("clientReadRequest: FD %d (%s:%d) Invalid Request\n", fd, fd_table[fd].ipaddr, fd_table[fd].remote_port); err = errorCon(ERR_INVALID_REQ, HTTP_BAD_REQUEST, NULL); -@@ -4086,7 +4125,7 @@ clientReadRequest(int fd, void *data) +@@ -4082,7 +4122,7 @@ clientReadRequest(int fd, void *data) } /* file_read like function, for reading body content */ @@ -2434,7 +2429,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientReadBody(request_t * request, char *buf, size_t size, CBCB * callback, void *cbdata) { ConnStateData *conn = request->body_reader_data; -@@ -4215,7 +4254,7 @@ clientProcessBody(ConnStateData * conn) +@@ -4211,7 +4251,7 @@ clientProcessBody(ConnStateData * conn) } /* Abort a body request */ @@ -2443,7 +2438,7 @@ diff -p -u -b -r1.154 -r1.89.4.14 clientAbortBody(request_t * request) { ConnStateData *conn = request->body_reader_data; -@@ -4257,7 +4296,7 @@ requestTimeout(int fd, void *data) +@@ -4253,7 +4293,7 @@ requestTimeout(int fd, void *data) * Some data has been sent to the client, just close the FD */ comm_close(fd); @@ -2452,10 +2447,11 @@ diff -p -u -b -r1.154 -r1.89.4.14 /* * assume its a persistent connection; just close it */ -@@ -4978,6 +5017,52 @@ varyEvaluateMatch(StoreEntry * entry, re +@@ -4974,6 +5014,52 @@ varyEvaluateMatch(StoreEntry * entry, re + } } } - ++ +#if HS_FEAT_ICAP +static int +clientIcapReqMod(clientHttpRequest * http) @@ -2501,10 +2497,9 @@ diff -p -u -b -r1.154 -r1.89.4.14 + return 1; +} +#endif -+ + /* This is a handler normally called by comm_close() */ static void - clientPinnedConnectionClosed(int fd, void *data) Index: src/comm.c =================================================================== RCS file: /cvsroot/squid/squid/src/comm.c,v |