]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: remove the unused fd_stop_send() in conn_xprt_shutw{,_hard}()
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 12:49:19 +0000 (13:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 12:49:19 +0000 (13:49 +0100)
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.

include/haproxy/connection.h

index 1986d3bd8762f2eee7c430ee490b4b59d9e1feb9..7c279afac606e86f6e3f77691ba5c8b6e67ad31e 100644 (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);