Hello,

Am 11.01.2017 um 14:44 schrieb Willy Tarreau:
On Wed, Jan 11, 2017 at 01:41:27PM +0200, Ciprian Dorin Craciun wrote:
Unfortunately a lot of these sites have hard-coded resources with the
`www` alternative domain and HTTP-only.  Therefore at least until we
rewrite those (which given their low-value might be delayed forever),
we'll end up with a lot of redirects (10-20 redirects first page
view), and because the close behaviour of HAProxy, we end up with a
lot of short-lived connections.  (This is not so much a load issue, as
it is a page load latency issue due to the TCP connection
establishment overhead.)
I didn't think about that case, it definitely makes sense. In fact I
mostly focused on first redirection without thinking about systematic
redirection caused by a migration (for example). Now I'm starting to
think that we should never close by default and that we should change
this behaviour as it's counter-intuitive.

I don't know what others think.

I agree; in a full keep-alive world, we should not try to close "by default", but let
the actual keep-alive code do its job.

But if we do remove those conditions, I guess we break a number of "old assumptions"
and we will hit new code paths, so there is a potential for bugs :)


Lukas

Reply via email to