mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-13 20:19:08 +02:00
MINOR: channel: Forwad close to other side on abort
Most of calls to channel_abort() are associated to a call to channel_auto_close(). Others are in areas where the auto close is the default. So, it is now systematically enabled when an abort is performed on a channel, as part of channel_abort() function.
This commit is contained in:
@@ -565,6 +565,7 @@ static inline void channel_abort(struct channel *chn)
|
||||
{
|
||||
chn_prod(chn)->flags |= SC_FL_SHUTR_NOW;
|
||||
chn_cons(chn)->flags |= SC_FL_SHUTW_NOW;
|
||||
chn->flags |= CF_AUTO_CLOSE;
|
||||
chn->flags &= ~CF_AUTO_CONNECT;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user