]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] fix early server close after client close
authorWilly Tarreau <w@1wt.eu>
Tue, 8 May 2007 12:46:53 +0000 (14:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2007 12:46:53 +0000 (14:46 +0200)
commitc9b654b48b805dcdac34ed7f1fdafa03d617e36d
tree6e51d7785079a0dba1206ef49f37d08dafdc897e
parent540abe406dbe907790698f313a6bc39478398d54
[BUG] fix early server close after client close

Problem reported by Andy Smith. If a client sends TCP data
and quickly closes the connection before the server connection
is established, AND the whole buffer can be sent at once when
the connection establishes, then the server side believes that
it can simply abort the connection because the buffer is empty,
without checking that some work was performed.

Fix: ensure that nothing was written before closing.
src/proto_http.c