Re: How to do DTD in squid?

From: Robert Collins <robertc@dont-contact.us>
Date: 22 Aug 2002 09:11:53 +1000

On Thu, 2002-08-22 at 02:21, Yee Man Chan wrote:
>
> I know. My problem is I don't know how. I tried to do
> the lookup and the related algorithm in httpReadReply.
> I can initiate the next GET there but I can't handle
> the case when there is a hit because I don't have a
> clientHttpRequest structure when I am in
> httpReadReply... What can I do?

Your problem is you are doing it in the wrong place - as Henrik has
*already* said.

I've recently overhauled client_side and made this particular aspect a
little more clear. Assuming that you *want* to stay developing on 2.4,
here are a few hints:

in clientHttpRequest, the following members make up a single store
request:
sc, reqofs, reqsize, entry.
Likewise,
old_sc, old_reqofs, old_reqsize and old_entry are used in a temporary
fashion while client_side determines if the second request will result
in a discarding of the original request or the second request. You could
consider this to be a pushdown stack, with the top element operated
upon.

Rob

Received on Wed Aug 21 2002 - 17:11:45 MDT

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