]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: pollers: Clear the poll_send bits as well.
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 5 Aug 2019 21:54:37 +0000 (23:54 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 5 Aug 2019 21:56:26 +0000 (23:56 +0200)
In _update_fd(), if we're about to remove the FD from the poller, remove
both the receive and the send bits, instead of removing the receive bits
twice.

src/ev_select.c

index f2a2acfa057036e9f398a3e7e3a6af451c6cdebb..89a661c54fc97370b41a6210c58ec25e2f6f53d3 100644 (file)
@@ -57,7 +57,7 @@ static void _update_fd(int fd, int *max_add_fd)
                hap_fd_clr(fd, fd_evts[DIR_RD]);
                hap_fd_clr(fd, fd_evts[DIR_WR]);
                _HA_ATOMIC_AND(&polled_mask[fd].poll_recv, 0);
-               _HA_ATOMIC_AND(&polled_mask[fd].poll_recv, 0);
+               _HA_ATOMIC_AND(&polled_mask[fd].poll_send, 0);
        }
        else {
                /* OK fd has to be monitored, it was either added or changed */