]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: connection: use fd_stop_both() instead of conn_stop_polling()
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 08:56:53 +0000 (09:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 08:56:53 +0000 (09:56 +0100)
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

index 366bb25b56e7ff2417fa0f82dc0397aeec17597a..13c9930ebc75872806e514af65b962d8f3131f6e 100644 (file)
@@ -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: