]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream-int: split the shutr/shutw functions between applet and conn
authorWilly Tarreau <w@1wt.eu>
Sun, 29 Sep 2013 12:51:58 +0000 (14:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2013 14:40:22 +0000 (15:40 +0100)
commit8b3d7dfd7c67dd0318efc9ddb0951c5d1ceb4a95
tree252bb1d80dea7c3ba9494ac37c4779692d558937
parentfac4bd1492b37640ed5e54c14bdd996ffc3648eb
MEDIUM: stream-int: split the shutr/shutw functions between applet and conn

These functions induce a lot of ifs everywhere because they consider two
different cases, one which is where the connection exists and has a file
descriptor, and the other one which is the default case where at most an
applet has to be notified.

Let's have them in si_ops and automatically decide which one to use.

The connection shutdown sequence has been slightly simplified, and we
now clear the flags at the end.

Also we remove SHUTR_NOW after a shutw with nolinger, as it's cleaner
not to keep it.
include/proto/stream_interface.h
include/types/stream_interface.h
src/stream_interface.c