CLEANUP: remove the unused fd_stop_send() in conn_xprt_shutw{,_hard}()

These functions used to disable polling for writes when shutting down
but this is no longer used as it still happens later when closing if the
connection was subscribed to FD events. Let's just remove this fake and
undesired dependency on the FD layer.
This commit is contained in:
Willy Tarreau 2020-12-11 13:49:19 +01:00
parent 78ea5c99a9
commit 3ec094b09d

View File

@ -205,9 +205,6 @@ static inline void conn_sock_shutw(struct connection *c, int clean)
static inline void conn_xprt_shutw(struct connection *c)
{
if (conn_ctrl_ready(c))
fd_stop_send(c->handle.fd);
/* clean data-layer shutdown */
if (c->xprt && c->xprt->shutw)
c->xprt->shutw(c, c->xprt_ctx, 1);
@ -215,9 +212,6 @@ static inline void conn_xprt_shutw(struct connection *c)
static inline void conn_xprt_shutw_hard(struct connection *c)
{
if (conn_ctrl_ready(c))
fd_stop_send(c->handle.fd);
/* unclean data-layer shutdown */
if (c->xprt && c->xprt->shutw)
c->xprt->shutw(c, c->xprt_ctx, 0);