2 ms·
> dumping answers in to the pipe pre-emptively That's a very interesting hack, but I hope no one decides to deploy it today. You really can't predict what the
by ivank 16y ago
> dumping answers in to the pipe pre-emptively
That's a very interesting hack, but I hope no one decides to deploy it today. You really can't predict what the next request will be - the browser can reuse the connection for some other request at a whim.
And I'm sure there's some proxy around that will panic if it gets a response before getting a request.
> Keep-alive on pretty much implies that pipelining is ok.
Well, sure, in theory. But since nearly every browser keeps it off (edit: doesn't pipeline requests), obviously a ton of servers are broken. Even Flickr was broken for many years with pipelining on (image downloads would abort randomly). Chrome is planning to eventually enable it with a bunch of heuristics; hopefully that will improve the situation.
Edit: "Making HTTP Pipelining Usable on the Open Web": http://tools.ietf.org/html/draft-nottingham-http-pipeline-00 http://tools.ietf.org/html/draft-nottingham-http-pipeline-00
- jacquesm 16y agoAs a rule I have it 'off' because I have seen more bugs related to keep-alive than that I've seen benefits from it but in some special cases the speedup can be dramatic so you should always at least test to see what it does for you. For instance, a gallery page with lots of small thumbnails could benefit from keep-alive being on.