This optimisation causes haproxy to time out requests that result
in two TCP packets, one packet containing the header, and one
packet containing the actual data. This is a very typical type
of response from a lot of servers.
[Willy: I suspect the fix might have an impact on the compression code
which I'm not sure completely handles calls with 0 bytes to forward]
/* in most states, we should abort in case of early close */
channel_auto_close(res);
- /* no data */
- if (res->buf->i == 0)
- return 0;
-
/* this is the first time we need the compression buffer */
if (s->comp_algo != NULL && tmpbuf == NULL) {
if ((tmpbuf = pool_alloc2(pool2_buffer)) == NULL)