MINOR: xprt: add a new show_fd() helper to complete some "show fd" dumps.
authorWilly Tarreau <w@1wt.eu>
Wed, 20 Jan 2021 14:30:56 +0000 (15:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 20 Jan 2021 16:17:39 +0000 (17:17 +0100)
commit108a27104960da8196eb6ce3686a2b65be3c6067
treed2b3fcbe584eb8fbf2a828050346927907477331
parent37be9534245152130fad75c74133c3111a2f382b
MINOR: xprt: add a new show_fd() helper to complete some "show fd" dumps.

Just like we did for the muxes, now the transport layers will have the
ability to provide helpers to report more detailed information about their
internal context. When the helper is not known, the pointer continues to
be dumped as-is if it's not NULL. This way a transport with no context nor
dump function will not add a useless "xprt_ctx=(nil)" but the pointer will
be emitted if valid or if a helper is defined.
include/haproxy/connection-t.h
src/cli.c