]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: connection: open-code conn_cond_update_polling() and update the comment
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 10:19:24 +0000 (11:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 10:19:24 +0000 (11:19 +0100)
commit8b250ba738ad4a03e9c53e33536ecef55caccb52
treee24f8e4cc769759884ca4bb36fe31b039ca564de
parentf7e4a6fc078a2eaf956340765e1db16ecfb29e1e
CLEANUP: connection: open-code conn_cond_update_polling() and update the comment

This last call to conn_cond_update_polling() is now totally misleading as
the function only stops polling in case of unrecoverable connection error.
Let's open-code the test to make it more prominent and explain what we're
trying to do there. It's even almost certain this code is never executed
anymore, as the only remaining case should be a mux's wake function setting
CO_FL_ERROR without disabling the polling, but they need to be audited first
to make sure this is the case.
src/connection.c