]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] logs: don't report "last data" when we have just closed after an error
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Mar 2010 16:54:21 +0000 (17:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Mar 2010 17:45:47 +0000 (18:45 +0100)
commit033b2dbeb30f2d652f5683483d7d15b6c8ba413d
tree75b394b795cf5fcce44b04ed7163077b9ef5c19e
parent88e058164a9cb7381361aaa97e399495fc3e2b92
[BUG] logs: don't report "last data" when we have just closed after an error

Some people have reported seeing "SL" flags in their logs quite often while
this should never happen. The reason was that then a server error is detected,
we close the connection to that server and when we decide what state we were
in, we see the connection is closed, and deduce it was the last data transfer,
which is wrong. We should report DATA if the previous state was an established
state, which this patch does.

Now logs correctly report "SD" and not "SL" when a server resets a connection
before the end of the transfer.
src/session.c