]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: perform the call to xprt->shutw() in conn_data_shutw()
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2015 21:51:10 +0000 (22:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2015 21:51:10 +0000 (22:51 +0100)
commit729c69f6e5c9098901d2242d86cf56bbf9ac6fe3
treefcd8c1f36df1d689d17d637556883cbd76c2b43c
parent4dfd54f26a8bbef6aeec1df970bd8e1e84263137
MINOR: connection: perform the call to xprt->shutw() in conn_data_shutw()

This will save callers from having to care about conn->xprt and xprt->shutw.
Note that shutw() takes a second argument indicating whether it's a clean or
a hard shutw. This is used by SSL which tries to close cleanly in most cases.

Here we provide two versions, conn_data_shutw() which performs the clean
close, and conn_data_shutw_hard() which does the unclean one.
include/proto/connection.h