mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-18 19:50:54 +00:00
BUG: polling: don't skip polled events in the spec list
Commit 09f245 came with a bug : if we don't process events from the spec list that are also being polled, we can end up with some stuck events that nobody processes. We must process all events from the spec list even if they're being polled in parallel.
This commit is contained in:
parent
54a08d3e08
commit
70d0ad560c
4
src/fd.c
4
src/fd.c
@ -156,10 +156,10 @@ void fd_process_spec_events()
|
||||
|
||||
fdtab[fd].ev &= FD_POLL_STICKY;
|
||||
|
||||
if ((e & FD_EV_STATUS_R) == FD_EV_ACTIVE_R)
|
||||
if (e & FD_EV_ACTIVE_R)
|
||||
fdtab[fd].ev |= FD_POLL_IN;
|
||||
|
||||
if ((e & FD_EV_STATUS_W) == FD_EV_ACTIVE_W)
|
||||
if (e & FD_EV_ACTIVE_W)
|
||||
fdtab[fd].ev |= FD_POLL_OUT;
|
||||
|
||||
if (fdtab[fd].iocb && fdtab[fd].owner && fdtab[fd].ev)
|
||||
|
Loading…
Reference in New Issue
Block a user