httpd accelerator and PURGE command (2.2STABLE5)

From: Michael Miller <Michael.Miller@dont-contact.us>
Date: Mon, 13 Dec 1999 14:51:48 -0000

Hi,

I have setup Squid 2.2STABLE5 in a httpd accelerator mode.

#bit from config file
httpd_accel_host real-www.domain.uk
httpd_accel_port 80
#httpd_accel_with_proxy off

This is working fine.

However I need to use the purge command. I setup the access lists, as needed
by the purge command only to always be denied access to the purge command.
(I saw a similar post in the archives from a few months ago which did not
help me).

I dug around the source and found that around line 135 in client_side.c

the lines:

-----------------------------------
....
clientAccessCheck(void *data)
{
  clientHttpRequest *http = data;
  ConnStateData *conn = http->conn;
  const char *browser;
  if (checkAccelOnly(http)) {
    clientAccessCheckDone(0,http);
    return;
  }
.....
-------------------------------------

appear to be the culprit.

When I changed my config to have:
httpd_accel_with_proxy on

I could now use the purge command.

Does anyone else think that with the appropriate ACLs in place, you should
be able to use the PURGE command without the need for the option
    httpd_accel_with_proxy
to be turned on?

My snippet of code maybe the wrong bit, but would anyone care to release a
patch for this issue?

--
Michael Miller                  michael@oyster.co.uk 
Unix Systems Administrator      +44 20 7446 7484
Oyster Partners Ltd
Received on Mon Dec 13 1999 - 08:03:27 MST

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