On Sat, Mar 29, 2008 at 09:38:05PM +0100, Juliusz Chroboczek wrote:
> > I'm trying to use Polipo to cache connections to reduce overhead in an
> > application which is doing RPC via HTTP POSTs.
> >
> > I've got it to use the proxy, but I still only see one request per
> > connection (despite the fact that it's keeping persistent connections
> > open).
> 
> Polipo will always use a fresh connection for a POST or PUT request;
> this is to avoid a race condition that is intrinsic in the HTTP protocol.
> 
> An HTTP server is allowed to shut down a persistent connection at any
> time.  This means in particular that it may shut down the connection
> between the time a request is sent and the time it is received.

A HTTP server is "allowed" to shut down whatever connection at any time. 
So _that_ is a bad reason to use virgin connections for POST.

A better reason is that HTTP servers (what they do, not just what is 
allowed) close idle connections after a theoretically unknown time.

What does polipo do if it sees a connection close after a POST on a 
virgin connection??


Robert

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to