Re: Code Changes in squid

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 03 Apr 2000 20:06:56 +0200

Looks ok.

ERR_SERVER_LOADED is a error page identity. Added in enums.h and
errorpage.c.

SOMETHING is the HTTP status code to return in the HTTP headers.
HTTP_SERVICE_UNAVAILABLE is probably the appropriate one.

/Henrik

Tewari, Vijay wrote:
>
> Thanks . I really appreciate your advise. I am looking at
> the code for fwdStart and at a quick glance here is what
> I intend to do.
>
> Add another boolean variable which is checked. If itis
> true then I intend to do something like what is done
> for aclCheckFast
>
> myAnswer = checkValofVar()
> if (myAnswer) //server is loaded
> {
> err = errorCon(ERR_SERVER_LOADED, SOMETHING); // I guess I
> will have to define ERR_SERVR_LOADED, SOMETHING but where ??
> err->request =requestLink(r); /
> err->src_addr = client_addr;
> errorAppendEntry(e, err);
> return;
> }
>
> Would this be ok and not crash the whole thing
>
> Regards
> Vijay
>
> -----Original Message-----
> From: Henrik Nordstrom [mailto:hno@hem.passagen.se]
> Sent: Sunday, April 02, 2000 5:40 AM
> To: Tewari, Vijay
> Cc: squid-dev@squid-cache.org
> Subject: Re: Code Changes in squid
>
> It could perhaps be added in fwdStart, like how miss_access is handled.
>
> fwdStart is called when all cache hit processing, http_access control
> and peer selection is completed, and Squid needs to contact the origin
> server (or another peer) for retreiving the content.
Received on Mon Apr 03 2000 - 12:09:29 MDT

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