]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stream_interface: don't return when the fd is already set
authorWilly Tarreau <w@1wt.eu>
Sat, 15 Dec 2012 09:12:39 +0000 (10:12 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Dec 2012 09:12:39 +0000 (10:12 +0100)
commitb01658706809693e8a018999a93948828b3a14ff
tree3028de182de3934ce8f0fe8cbc269b9bfc8dca64
parentca00fbcb91165e5d8d64ba7b53000ffac77f44c9
BUG/MINOR: stream_interface: don't return when the fd is already set

Back in the days where polling was made with select() where all FDs
were checked at once, stream_int_chk_snd_conn() used to check whether
the file descriptor it was passed was ready or not, so that it did
not perform the work for nothing.

Right now FDs are checked just before calling the I/O handler so this
test never matches at best, or may return false information at worst.

Since conn_fd_handler() always clears the flags upon exit, it looks
like a missed event cannot happen right now. Still, better remove
this outdated check than wait for it to cause issues.
src/stream_interface.c