You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Io\Poll\Context::wait() ignores $maxEvents on the poll backend #426
Io\Poll\Context::wait() takes a $maxEvents argument, but on the Backend::Poll backend it is ignored: all ready watchers are returned. Found by reading prelude/io_poll.php while documenting it (the docblock now says so); not reproduced with a program. The kqueue and epoll backends use it as the event-buffer size.
Either honour the cap in the poll backend (return at most $maxEvents and keep the rest for the next wait()), or document it as backend-dependent in the signature. Honouring it matters for fairness: a poll-backend loop with thousands of ready descriptors cannot be bounded per iteration today.
Activity