]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] stream_sock: disable I/O on fds reporting an error
authorWilly Tarreau <w@1wt.eu>
Sat, 28 Mar 2009 19:54:53 +0000 (20:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 28 Mar 2009 22:42:30 +0000 (23:42 +0100)
commit1714e0ffda337ccb0f02cba0f3cf8119675c8ddd
tree49ce4a4bf567e008381f132fe537df0f80ebe049
parent1eead503da2617be8338ac2ff8e32a295991d369
[BUG] stream_sock: disable I/O on fds reporting an error

Upon read or write error, we cannot immediately close the FD because
we want to first report the error to the upper layer which will do it
itself. However, we want to prevent any further I/O from being performed
on the FD. This is especially important in case of speculative I/O where
nothing else could stop the FD from still being polled until the upper
layer takes care of the condition.
src/stream_sock.c