]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: connections: Don't reset the polling flags in conn_fd_handler().
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 12 Sep 2018 15:12:53 +0000 (17:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Sep 2018 15:37:55 +0000 (17:37 +0200)
Resetting the polling flags at the end of conn_fd_handler() shouldn't be
needed anymore, and it will create problem when we won't handle send/recv
from conn_fd_handler() anymore.

src/connection.c

index ab32567bd566c2a5a44e66f7284753cd814846d6..e303f2c3b798e9136fedce13f12706d664ba4198 100644 (file)
@@ -203,9 +203,6 @@ void conn_fd_handler(int fd)
            conn->mux->wake(conn) < 0)
                return;
 
-       /* remove the events before leaving */
-       fdtab[fd].ev &= FD_POLL_STICKY;
-
        /* commit polling changes */
        conn->flags &= ~CO_FL_WILL_UPDATE;
        conn_cond_update_polling(conn);