]> git.kaiwu.me - haproxy.git/commitdiff
REGTESTS: tcp-check-ssl: tolerate an errno info in the SSL handshake failure
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 24 Nov 2026 14:47:26 +0000 (15:47 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 24 Nov 2026 14:51:33 +0000 (15:51 +0100)
With some recent SSL libraries, the info reported by the health check on
server be3/srv may include an errno info after the "SSL handshake failure"
message (e.g. "SSL handshake failure (broken pipe)"), making the S3 syslog
expectation fail to match. The pattern now tolerates any suffix inside the
info quotes, after the two known messages.

reg-tests/checks/tcp-check-ssl.vtc

index da7f22d397220df1705e99835bda8669f9970d12..d8cca94dafb56a138b7683a05952400ed9e4b594 100644 (file)
@@ -18,7 +18,7 @@ syslog S_ok -level notice {
 
 syslog S3 -level notice {
     recv
-    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be3/srv failed, reason: Layer6 invalid response.+info: \"(Connection closed during SSL handshake|SSL handshake failure)\".+check duration: [[:digit:]]+ms, status: 0/1 DOWN."
+    expect ~ "[^:\\[ ]\\[${h1_pid}\\]: Health check for server be3/srv failed, reason: Layer6 invalid response.+info: \"(Connection closed during SSL handshake|SSL handshake failure).*\".+check duration: [[:digit:]]+ms, status: 0/1 DOWN."
 } -start
 
 syslog S4 -level notice {