]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: checks: Don't attempt to read if we destroyed the connection.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 9 Jul 2019 15:28:51 +0000 (17:28 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 10 Jul 2019 14:29:12 +0000 (16:29 +0200)
commitbc89ad8d94246eca064b87e76c1897f6a950f6fb
treeb1de1c3961af0ce696e4702378af4cbe2f7f7f23
parent34ce7d075ae3d5d5c876de4ad76bdf0e358772df
BUG/MEDIUM: checks: Don't attempt to read if we destroyed the connection.

In event_srv_chk_io(), only call __event_srv_chk_r() if we did not subscribe
for reading, and if wake_srv_chk() didn't return -1, as it would mean it
just destroyed the connection and the conn_stream, and attempting to use
those to recv data would lead to a crash.

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