From: Olivier Houchard Date: Mon, 5 Aug 2019 21:54:37 +0000 (+0200) Subject: BUG/MEDIUM: pollers: Clear the poll_send bits as well. X-Git-Tag: v2.1-dev2~235 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3a8ea2fbf6d10fa8ada653baa08518d5d769a6c;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: pollers: Clear the poll_send bits as well. 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. --- diff --git a/src/ev_select.c b/src/ev_select.c index f2a2acfa05..89a661c54f 100644 --- a/src/ev_select.c +++ b/src/ev_select.c @@ -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 */