MINOR: ssl/show_fd: report some FDs as suspicious when possible
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Jan 2021 07:53:50 +0000 (08:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Jan 2021 17:13:36 +0000 (18:13 +0100)
commit767dedd9a300e93c01e17a8ddffaf1f57b480212
tree54514f7e72419ec0a245ae7de331682a4513d46e
parent9e1771423d5b08b5207a160dff3a98ab59aa0f02
MINOR: ssl/show_fd: report some FDs as suspicious when possible

If a subscriber's tasklet was called more than one million times, if
the ssl_ctx's connection doesn't match the current one, or if the
connection appears closed in one direction while the SSL stack is
still subscribed, the FD is reported as suspicious. The close cases
may occasionally trigger a false positive during very short and rare
windows. Similarly the 1M calls will trigger after 16GB are transferred
over a given connection. These are rare enough events to be reported as
suspicious.

(cherry picked from commit 4bd5d630ace94ee6b4cbb7375ec75f50a927a826)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/ssl_sock.c