]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: http: do not re-enable reading on client side while closing the server side
authorWilly Tarreau <w@1wt.eu>
Sun, 15 Dec 2013 14:32:10 +0000 (15:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 16 Dec 2013 01:23:53 +0000 (02:23 +0100)
commit2e7a1658996cc6b9c0f5f1ae56e0e5008aabd581
tree3c72bff2a3d0e44cbb4f27da2fca390771ffdba2
parent3f3997e6c6e994883611aa2420990108a8d32dc7
OPTIM: http: do not re-enable reading on client side while closing the server side

It's common to observe a an recv() call on the client side just after
the connect() to has been issued to the server side when running in
server close mode. The reason is that the whole request has been sent
and the shutw() has been queued in the channel, so the request message
switches to the MSG_CLOSED state, which didn't disable reading. Let's
do it now. That way the reading will only be re-enabled after the
response is transferred to the client. However if abortonclose is set,
we still leave it enabled.
src/proto_http.c