From 5a1d439225f803654d512d3317496b802a909c77 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 11 Dec 2020 09:56:53 +0100 Subject: [PATCH] CLEANUP: connection: use fd_stop_both() instead of conn_stop_polling() conn_stop_polling() in fact only calls fd_stop_both() after checking that the ctrl layer is ready. It's the case in conn_fd_check() so let's get rid of this next-to-last user of this function. --- src/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection.c b/src/connection.c index 366bb25..13c9930 100644 --- a/src/connection.c +++ b/src/connection.c @@ -264,7 +264,7 @@ int conn_fd_check(struct connection *conn) */ fdtab[fd].linger_risk = 0; conn->flags |= CO_FL_ERROR | CO_FL_SOCK_RD_SH | CO_FL_SOCK_WR_SH; - conn_stop_polling(conn); + fd_stop_both(fd); return 0; wait: -- 1.7.10.4