]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: checks: Don't bother subscribing if we have a connection error.
authorOlivier Houchard <cognet@ci0.org>
Thu, 28 Mar 2019 16:32:42 +0000 (17:32 +0100)
committerOlivier Houchard <cognet@ci0.org>
Thu, 28 Mar 2019 16:32:42 +0000 (17:32 +0100)
commit06f6811d9fc3f36597b686e4ca9fe7fbccf091b0
tree04ed44322127df40ab1b899012a4df0e2c519ced
parentf94afebb946eb550f1cd1c8159d2ba5d7323e5f3
BUG/MEDIUM: checks: Don't bother subscribing if we have a connection error.

In __event_srv_chk_r() and __event_srv_chk_w(), don't bother subscribing
if we're waiting for a handshake, but we had a connection error. We will
never be able to send/receive anything on that connection anyway, and
the conn_stream is probably about to be destroyed, and we will crash if
the tasklet is waken up.
I'm not convinced we need to subscribe here at all anyway, but I'd rather
modify the check code as little as possible.

This should be backported to 1.9.
src/checks.c