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>
Thu, 28 Jan 2021 17:13:36 +0000 (18:13 +0100)
commite0150e7888d298207a843ed427160697350fd14b
tree8b51eb3b96bfc0bb51cc97f00477f08dc7ac0ee3
parent4873384a779059a4d4222f4cf045ce249a6f2827
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.

(cherry picked from commit 108a27104960da8196eb6ce3686a2b65be3c6067)
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/connection-t.h
src/cli.c