From: hno <> Date: Sun, 14 Apr 2002 19:58:01 +0000 (+0000) Subject: Bugzilla #164: delay_access and proxy_auth ACL types X-Git-Tag: SQUID_3_0_PRE1~1076 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=866c97b1144dd0a749fe48de30c4bf7310cf294c;p=thirdparty%2Fsquid.git Bugzilla #164: delay_access and proxy_auth ACL types Patch by Robert Collins. --- diff --git a/src/client_side.cc b/src/client_side.cc index 66cbd4e699..cb2bc41f24 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.573 2002/04/13 23:07:49 hno Exp $ + * $Id: client_side.cc,v 1.574 2002/04/14 13:58:01 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -213,7 +213,7 @@ clientCreateStoreEntry(clientHttpRequest * h, method_t m, request_flags flags) e = storeCreateEntry(h->uri, h->log_uri, flags, m); h->sc = storeClientListAdd(e, h); #if DELAY_POOLS - delaySetStoreClient(h->sc, delayClient(h->request)); + delaySetStoreClient(h->sc, delayClient(h)); #endif h->reqofs = 0; h->reqsize = 0; @@ -402,7 +402,7 @@ clientProcessExpired(void *data) http->sc = storeClientListAdd(entry, http); #if DELAY_POOLS /* delay_id is already set on original store client */ - delaySetStoreClient(http->sc, delayClient(http->request)); + delaySetStoreClient(http->sc, delayClient(http)); #endif http->request->lastmod = http->old_entry->lastmod; debug(33, 5) ("clientProcessExpired: lastmod %ld\n", (long int) entry->lastmod); @@ -1966,7 +1966,7 @@ clientProcessRequest(clientHttpRequest * http) http->entry->mem_obj->method = r->method; http->sc = storeClientListAdd(http->entry, http); #if DELAY_POOLS - delaySetStoreClient(http->sc, delayClient(r)); + delaySetStoreClient(http->sc, delayClient(http)); #endif assert(http->log_type == LOG_TCP_HIT); http->reqofs = 0; diff --git a/src/delay_pools.cc b/src/delay_pools.cc index 1808207d6a..059f7f022c 100644 --- a/src/delay_pools.cc +++ b/src/delay_pools.cc @@ -1,6 +1,6 @@ /* - * $Id: delay_pools.cc,v 1.21 2002/04/13 23:07:50 hno Exp $ + * $Id: delay_pools.cc,v 1.22 2002/04/14 13:58:01 hno Exp $ * * DEBUG: section 77 Delay Pools * AUTHOR: David Luyer @@ -305,19 +305,23 @@ delayId(unsigned short pool, unsigned short position) } delay_id -delayClient(request_t * r) +delayClient(clientHttpRequest * http) { + request_t *r; aclCheck_t ch; int i; int j; unsigned int host; unsigned short pool, position; unsigned char class, net; + assert(http); + r = http->request; memset(&ch, '\0', sizeof(ch)); ch.src_addr = r->client_addr; ch.my_addr = r->my_addr; ch.my_port = r->my_port; + ch.conn = http->conn; ch.request = r; if (r->client_addr.s_addr == INADDR_BROADCAST) { debug(77, 2) ("delayClient: WARNING: Called with 'allones' address, ignoring\n"); diff --git a/src/protos.h b/src/protos.h index 6c7e26151b..0caf3a22f8 100644 --- a/src/protos.h +++ b/src/protos.h @@ -1,6 +1,6 @@ /* - * $Id: protos.h,v 1.433 2002/04/13 23:07:51 hno Exp $ + * $Id: protos.h,v 1.434 2002/04/14 13:58:01 hno Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -1234,7 +1234,7 @@ extern void delayPoolsReconfigure(void); extern void delaySetNoDelay(int fd); extern void delayClearNoDelay(int fd); extern int delayIsNoDelay(int fd); -extern delay_id delayClient(request_t *); +extern delay_id delayClient(clientHttpRequest *); extern EVH delayPoolsUpdate; extern int delayBytesWanted(delay_id d, int min, int max); extern void delayBytesIn(delay_id, int qty);