Patch by Robert Collins.
/*
- * $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
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;
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);
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;
/*
- * $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 <david@luyer.net>
}
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");
/*
- * $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/
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);