Hi there, I think there's a bug in how HAProxy handles timeout, that'd be great if you can confirm or help me figure out what I do wrong:
Basically: if a server timeout happens on a keep-alive connection, haproxy does not write a 504 response before closing the socket. This leads python to fail with a serious BadStatusLineError instead of a simple http error. And Ruby to retry potentially non-idempotent methods. Here's a basic setup to reproduce the error: https://gist.github.com/lsenta/1d33c6a01c07b32ac18a I've also had some help by meineerde on irc, here's the haproxy logs with a ruby client doing the same request: https://gist.github.com/meineerde/87a571c57369d322dae0#gistcomment-1617687 I've seen this behavior with v.1.6.2, 1.5.15 and 1.6.0 Best,

