Hi,
Thx for the reply. Is there a chance that the request would get resent
again when httpClientGetHandler gets called with the new_object or do u do
this just for validation with request parameters ?
Senthil KSK
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Juliusz
Chroboczek
Sent: Thursday, February 21, 2008 9:22 PM
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: Re: [Polipo-users] Question regarding supersede case
> In supersede case why you called "delayedHttpClientNoticeRequest" in
> "httpClientGetHandler".
> In this supersede case you have create new object and that object will
be
> replace to old object in httpClientGetHandler then why you call this
> delayedHttpClientNoticeRequest, why don't you give return 1 here after you
set
> the request->object = new_object and request->request->object =
new_object.
> Can you please tell me the reason for that
On the client side, we've got a request at the head of the queue that
is trying to download object.
connection->request == request and request->object == object
Now we realised that object is superseded, and that what the request
should be donwloading is new_object. So we mutate request,
request->object = new_object
But now, there's a number of things that we've already checked about
object that need to be checked again; so what we do is to call
httpClientGetHandler again so that it redoes all the work that needs
to be done with new_object.
We do it indirectly, by calling back into notifyHandler, but the goal
is to call clientGetHandler again.
Juliusz
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.20.9/1290 - Release Date: 2/20/2008
8:45 PM
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.20.9/1293 - Release Date: 2/22/2008
9:21 AM
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users