> 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