Closed rasmus116 closed 5 years ago
Hi @rasmus116 , thank you very much for reporting that issue. That might be fixable easily by reducing the max epoll events to 1, right?
Adding more event buffers would also be a solution, but needs more changes for the first shot.
@rasmus116 ,I created a pull request for your issue. Would you like to make a review?
It looks ok 👍 .
thx :+1:
Theoretically, 10 events can return at the same time from epoll_wait.
In every iteration for these events data is reading into same memory address(
eventBuffer.data()
).Under these circumstances data of 'eventBuffer' is overwritten for each iteration of for loop.
That condition may be impossible for that project, but as a epoll_wait implementation it seems to be a problem.