]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: add minimal error reporting in logs for incomplete connections
authorWilly Tarreau <w@1wt.eu>
Mon, 3 Dec 2012 14:35:00 +0000 (15:35 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 3 Dec 2012 14:38:23 +0000 (15:38 +0100)
commit0af2912fd1c5e72b1547bb841b6eb7c3fe14f659
tree4e29c8afcd5dd307c15082f3d595b6f9b35cdd1f
parent14cba4b0b1240e207ac8df3d876d71da60ccb42d
MEDIUM: connection: add minimal error reporting in logs for incomplete connections

Since the introduction of SSL, it became quite annoying not to get any useful
info in logs about handshake failures. Let's improve reporting for embryonic
sessions by checking a per-connection error code and reporting it into the logs
if an error happens before the session is completely instanciated.

The "dontlognull" option is supported in that if a connection does not talk
before being aborted, nothing will be emitted.

At the moment, only timeouts are considered for SSL and the PROXY protocol,
but next patches will handle more errors.
include/proto/connection.h
include/types/connection.h
src/session.c