]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: connection: Wake the stconn on error when failing to create mux
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Apr 2026 06:07:14 +0000 (08:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Apr 2026 06:20:59 +0000 (08:20 +0200)
commitb7add82f9211e0bc87ed5361220694ffc10c0062
treee83f0101d0a1fefcc63bcf18ed6a57c2a309a03f
parentaccc9003e84818d5c37c184f3f26fb09bcda80eb
BUG/MEDIUM: connection: Wake the stconn on error when failing to create mux

When the app_ops were removed, direct calls to the SC wake callback function
were replaced by tasklet wakeups. However, in conn_create_mux(), it was
replaced by a direct call to sc_conn_process(). However, sc_conn_process()
is only usable when the SC is attach to a stream. A backend mux can be
created for a healcheck. In this context, sc_conn_process() cannot be
called.

Because of this bug, crashes can be experienced when an error is triggered
during a SSL connection attempt from a healthcheck.

To fix the issue, the call to sc_conn_process() was replaced by a tasklet
wakeup.

This patch should fix the issue #3326. No backport needed.
src/connection.c