mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 15:47:01 +02:00
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:
parent
78ea5c99a9
commit
3ec094b09d
@ -205,9 +205,6 @@ static inline void conn_sock_shutw(struct connection *c, int clean)
|
|||||||
|
|
||||||
static inline void conn_xprt_shutw(struct connection *c)
|
static inline void conn_xprt_shutw(struct connection *c)
|
||||||
{
|
{
|
||||||
if (conn_ctrl_ready(c))
|
|
||||||
fd_stop_send(c->handle.fd);
|
|
||||||
|
|
||||||
/* clean data-layer shutdown */
|
/* clean data-layer shutdown */
|
||||||
if (c->xprt && c->xprt->shutw)
|
if (c->xprt && c->xprt->shutw)
|
||||||
c->xprt->shutw(c, c->xprt_ctx, 1);
|
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)
|
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 */
|
/* unclean data-layer shutdown */
|
||||||
if (c->xprt && c->xprt->shutw)
|
if (c->xprt && c->xprt->shutw)
|
||||||
c->xprt->shutw(c, c->xprt_ctx, 0);
|
c->xprt->shutw(c, c->xprt_ctx, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user