]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: remove the FD_POLL_* flags only once
authorWilly Tarreau <wtarreau@exceliance.fr>
Mon, 23 Jul 2012 10:14:26 +0000 (12:14 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Sep 2012 19:51:28 +0000 (21:51 +0200)
commit61ace1b2ca51729270bd980984a2c67293bc2a2f
treeb4e99b3f816c244904fc70ad69cc24683223bda8
parent8018471f44ead9566114df1f004f500ed1d7dd75
MEDIUM: connection: remove the FD_POLL_* flags only once

It's inappropriate to remove FD_POLL_IN and FD_POLL_OUT in the IO callback
handlers, first because they shouldn't care about this, and second because
it will make it harder to chain multiple callers.

So let's flush these flags only once for all in the connection handler.
Right now, the HUP and ERR flags are still flushed in each IO handler to
avoid multiple calls. This will probably have to be fixed later.
src/connection.c
src/sock_raw.c