Re: keep-alive for a while even if server don't specify

Juliusz Chroboczek <[email protected]>
Newsgroups gmane.comp.web.polipo.user
Message-ID <[email protected]>
> How long does polipo keep-a-live a connection if the server doesn't give the
> keep-alive directive?

See Section 3.6 of the manual.

> I ask this because I run into some streaming sites that need 4 http
> requests in the same connection to get the stream to start.  None of the
> server reply to the first three request indicate keep-alive. The polipo
> send the first three in one connection, but the forth starts in a new
> connection.

What you're seeing are two mechanisms:

1. For the first two or three requests (depending on whether the server is
   already known to support HTTP/1.1), Polipo uses a single connection in
   order to probe for pipelining support.

2. After the pipelining probe has completed, Polipo starts load-balancing
   over serverSlots or serverSlots1 or serverMaxSlots connections
   (depending on what it found out about the server).

So apparently what you dislike is the load-balancing behaviour.  The only
way to disable this is to run Polipo with serverMaxSlots set to 1, but
beware -- this is definitely ungood for performance.

                                        Juliusz

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.