Re: How to do DTD in squid?

From: Yee Man Chan <ymc@dont-contact.us>
Date: Thu, 22 Aug 2002 02:01:17 -0700 (PDT)

I know I need to do it in client_side.c. I think my
problem is actually this:

1. DTD only takes a different path from normal squid
when it got a URL miss.
2. I looked at clientProcessMiss and at the end it
calls fwdStart to try to get to the server. And then I
believe it goes through storeAppend and storeComplete
and send back data to the client through
clientSendMoreData. I believe it sets httpReadReply to
wait for things to come in.
3. The problem is since we are non-blocking, this
fwdStart returns pretty quick without completely
download the whole reply. So obviously I can't modify
the end of clientProcessMiss to do my thing. Therefore
I tried to do it in httpReadReply and it seems to me
its not gonna work when I get a Content-MD5 hit. I
believe there must be some ways to do it in
client_side.c but I can't figure it out. Can anyone
show me how?

Thanks in advance.
Yee Man
--- Henrik Nordstrom <hno@marasystems.com> wrote:
> You need to do this from client_side.c, similar to
> how it constructs a new
> request for the IMS query.
>
> Regards
> Henrik
>
> 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?
> >
> > Thanks
> > Yee Man
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > HotJobs - Search Thousands of New Jobs
> > http://www.hotjobs.com
>

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
Received on Thu Aug 22 2002 - 03:01:19 MDT

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