]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: connection: correctly retry I/O on signals
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Feb 2020 09:08:05 +0000 (10:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Feb 2020 09:26:39 +0000 (10:26 +0100)
commit157788c7b194eda5d0c825f4704081ed2e7efbd9
tree416664d4c4a82fe8f6e3c39e44aa8931796b998e
parent4550e875d70e32b9fde0ae095a9b2b268e93bf81
BUG/MINOR: connection: correctly retry I/O on signals

Issue #490 reports that there are a few bogus constructs of the famous
"do { if (cond) continue; } while (0)" in the connection code, that are
used to retry on I/O failures caused by receipt of a signal. Let's turn
them into the more correct "while (1) { if (cond) continue; break }"
instead. This may or may not be backported, it shouldn't have any
visible effect.
src/connection.c