]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: tcploop: centralize the polling code into wait_for_fd()
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Nov 2022 15:05:46 +0000 (16:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Nov 2022 16:07:22 +0000 (17:07 +0100)
commit45c277945619a2a8ff2ac9957019b15d4f810c93
tree4ff263c118459bb7befaac16adda2e63140b5e3c
parent2afa42599c4cde8411890add3cdf8fbdf92c00c4
DEV: tcploop: centralize the polling code into wait_for_fd()

There are multiple call places for poll(), let's first centralize them
to make it easier to enhance it. All callers now use the wait_for_fd()
function which was extended to take a timeout and which can return the
indication that an error was seen.
dev/tcploop/tcploop.c