]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DEV: term-events: Fix hanshake events decoding
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Feb 2026 06:39:31 +0000 (07:39 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Feb 2026 08:44:15 +0000 (09:44 +0100)
Handshakes events were not properly decoded. Only send errors were decoded
as expected, other events were reported with a '-'. It is now fixes.

This patch could be backported as far as 3.2.

dev/term_events/term_events.c

index 417793fb6bbae52ffdbf48ea6cf8f7db5153c413..e3eaf147bc5200b9912b02102017e85b8b23c168 100644 (file)
@@ -30,10 +30,10 @@ static const char *tevt_fd_types[16] = {
 };
 
 static const char *tevt_hs_types[16] = {
-       [ 0] = "-",       [ 1] = "-", [ 2] = "-", [ 3] = "rcv_err",
-       [ 4] = "snd_err", [ 5] = "-", [ 6] = "-", [ 7] = "-",
-       [ 8] = "-",       [ 9] = "-", [10] = "-", [11] = "-",
-       [12] = "-",       [13] = "-", [14] = "-", [15] = "-",
+       [ 0] = "-",       [ 1] = "-",               [ 2] = "-",                 [ 3] = "-",
+       [ 4] = "snd_err", [ 5] = "truncated_shutr", [ 6] = "truncated_rcv_err", [ 7] = "-",
+       [ 8] = "-",       [ 9] = "-",               [10] = "-",                 [11] = "-",
+       [12] = "-",       [13] = "-",               [14] = "-",                 [15] = "-",
 };
 
 static const char *tevt_xprt_types[16] = {