]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: add new sample fetch functions fc_err_name and bc_err_name
authorWilly Tarreau <w@1wt.eu>
Tue, 5 Nov 2024 17:04:21 +0000 (18:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Nov 2024 17:57:43 +0000 (18:57 +0100)
commit601b34fe7bd50c733a437f26817580bbd56c8d56
tree06cc44e972732ee8e2b85bac9e19d57478ba086f
parent822d82caf4165f0f6da681737c7e3db17d01f599
MINOR: connection: add new sample fetch functions fc_err_name and bc_err_name

These functions return a symbolic error code such as ECONNRESET to keep
logs compact while making them human-readable. It's a good alternative
to the numeric code in that it's more expressive, and a good one to the
full message since it's shorter and more precise (some codes even match
errno names).

The doc was updated so that the symbolic names appear in the table. It
could be useful to backport this feature to help with troubleshooting
some issues, though backporting the doc might possibly be more annoying
in case users have local patches already, so maybe the table update does
not need to be backported in this case.
doc/configuration.txt
include/haproxy/connection.h
src/connection.c