Re: Squid: ftp icon problem in 1.2b23

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 24 Jul 1998 00:32:10 +0200

Carl Whitwell wrote:
> The problem is that when viewing an ftp list the icons cannot be found.

The icons can be found, but only until one user uses reload..

Here is a preleminary patch that fixes this problem.

---
Henrik Nordström
Sparetime Squid Hacker

Index: squid/src/client_side.c
diff -u squid/src/client_side.c:1.1.1.23 squid/src/client_side.c:1.1.1.23.2.1
--- squid/src/client_side.c:1.1.1.23 Thu Jul 23 22:37:48 1998
+++ squid/src/client_side.c Fri Jul 24 00:12:56 1998
@@ -1606,6 +1606,10 @@
         storeRelease(e);
         http->entry = NULL;
         return LOG_TCP_MISS;
+ } else if (EBIT_TEST(e->flag, ENTRY_SPECIAL)) {
+ /* Special entries are always hits, no matter what the client says */
+ return LOG_TCP_HIT;
+ http->entry = e;
     } else if (EBIT_TEST(r->flags, REQ_NOCACHE)) {
         /* NOCACHE should always eject a negative cached object */
         if (EBIT_TEST(e->flag, ENTRY_NEGCACHED))
Received on Thu Jul 23 1998 - 15:45:58 MDT

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