Re: delay_pools

From: Vladimir B. Savkin <savkin@dont-contact.us>
Date: Sun, 23 Sep 2001 19:12:43 +0400

Hi!

On Tue, Aug 14, 2001 at 09:02:26AM -0400, Edward wrote:
> Hi there!
>
> Can any one please tell if delay_pools is giving problems in squid 2.5?

There were changes in client_side.c (revision 1.542)
that broke delay_pools. The patch below reverts them and works for me.

Index: src/client_side.c
===================================================================
RCS file: /squid/squid/src/client_side.c,v
retrieving revision 1.545
diff -u -r1.545 client_side.c
--- src/client_side.c 2001/08/29 14:57:34 1.545
+++ src/client_side.c 2001/09/23 15:07:12
@@ -204,7 +204,7 @@
     e = storeCreateEntry(h->uri, h->log_uri, flags, m);
     h->sc = storeClientListAdd(e, h);
 #if DELAY_POOLS
- delaySetStoreClient(h->sc, delayClient(h));
+ delaySetStoreClient(h->sc, delayClient(h->request));
 #endif
     storeClientCopy(h->sc, e, 0, 0, CLIENT_SOCK_SZ,
         memAllocate(MEM_CLIENT_SOCK_BUF), clientSendMoreData, h);
@@ -385,7 +385,7 @@
     http->sc = storeClientListAdd(entry, http);
 #if DELAY_POOLS
     /* delay_id is already set on original store client */
- delaySetStoreClient(http->sc, delayClient(http));
+ delaySetStoreClient(http->sc, delayClient(http->request));
 #endif
     http->request->lastmod = http->old_entry->lastmod;
     debug(33, 5) ("clientProcessExpired: lastmod %d\n", (int) entry->lastmod);
@@ -2308,7 +2308,7 @@
         http->entry->mem_obj->method = r->method;
         http->sc = storeClientListAdd(http->entry, http);
 #if DELAY_POOLS
- delaySetStoreClient(http->sc, delayClient(http));
+ delaySetStoreClient(http->sc, delayClient(http->request));
 #endif
         storeClientCopy(http->sc, http->entry,
             http->out.offset,

>
> Thank you very much.
>
> Best regards,
>
> Edward Millington
> (Network Administrator & Senior Technical Support Technician)
> Cariaccess Communications Ltd.
> Palm Plaza
> Wildey
> St. Michael
> Barbados
> 1-246-430-7435
> Fax : 1-246-431-0170
> edward@cariaccess.com
> www.cariaccess.com

:wq
                                        With best regards,
                                           Vladimir Savkin.
Received on Sun Sep 23 2001 - 09:13:41 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:22 MST