mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
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.
This commit is contained in:
parent
c22580c2cc
commit
a3a8ea2fbf
@ -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_RD]);
|
||||||
hap_fd_clr(fd, fd_evts[DIR_WR]);
|
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_recv, 0);
|
_HA_ATOMIC_AND(&polled_mask[fd].poll_send, 0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* OK fd has to be monitored, it was either added or changed */
|
/* OK fd has to be monitored, it was either added or changed */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user