Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
EnginePoll/EngineEpoll: fix polling timeout (#354)
* EnginePoll: Force the timeout to be exactly -1 when is negative. The implementation of the poll() system call in some OSes, including macOS and BSDs, throws an error for arbitrary negative values besides -1. * EngineEPoll: apply the same fix for coherence and to avoid similar issues in the future. * EnginePoll/EngineEPoll: remove the added millisecond to the timeout, when timeo is 0 is ok to pass 0 as timeout to the poll() methods to return without blocking triggering any pending events. Fix #353
- Loading branch information