]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] session: errors were not reported in termination flags in TCP mode
authorWilly Tarreau <w@1wt.eu>
Sun, 15 Mar 2009 21:34:05 +0000 (22:34 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 15 Mar 2009 21:34:05 +0000 (22:34 +0100)
commit844553303dc4bc31c49b13826591b0fd69866a07
tree898ebd6561b056ba926708772e12f2eac5eca429
parenta3780f2db86815fbc802d94cc46e206c907312ff
[BUG] session: errors were not reported in termination flags in TCP mode

In order to get termination flags properly updated, the session was
relying a bit too much on http_return_srv_error() which is http-centric.

A generic srv_error function was implemented in the session in order to
catch all connection abort situations. It was then noticed that a request
abort during a connection attempt was not reported, which is now fixed.

Read and write errors/timeouts were not logged either. It was necessary
to add those tests at 4 new locations.

Now it looks like everything is correctly logged. Most likely some error
checking code could now be removed from some analysers.
include/proto/session.h
src/client.c
src/session.c