]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stconn: Don't queue stream task in past in sc_notify()
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 6 Nov 2023 07:57:06 +0000 (08:57 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 7 Nov 2023 09:32:25 +0000 (10:32 +0100)
commit08d7169f429cd1a7dd79a5438a8ee754f708c577
tree30aadbe0ce5b5d48fe793277e1019f2c05021b13
parent4a2660aa455e3496eadb9c3cb661245c07c7a3bb
MINOR: stconn: Don't queue stream task in past in sc_notify()

A task must never be queued in past. However, in sc_notify(), the stream
task, if not woken up, is queued. Thanks to previous fixes, the stream task
expiration date should be correct. But to prevent any issue, a BUG_ON() is
added to be sure it never happens. I guess a good idea could be to remove it
or change it to BUG_ON_HOT() for the final release.
src/stconn.c