]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: automatically disable polling on error
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Oct 2012 20:21:15 +0000 (22:21 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Oct 2012 20:26:11 +0000 (22:26 +0200)
commit0ffde2cc3f639e42ba5d998c70b6f8ac4abbb5d8
treec7c0de121a694619edd7356f3c98e101dfb97c0e
parent665e6ee7aadef06b0fdf0c311808c68fb2a96bed
MEDIUM: connection: automatically disable polling on error

We absolutely want to disable FD polling after an error is detected,
otherwise the data layer has to do it and it's far from being obvious
at these layers.

The way we did it was a bit tricky in conn_update_*_polling and
conn_*_polling_changes. However it has almost no impact on performance
and code size both for the fast and slow path.

We'll now be able to remove some flag updates in the stream interface.
include/proto/connection.h
src/connection.c