epoll's datapath #2662
-
Hi, Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The whole reason for the while true was because we were using edge triggered epoll events. We actually found last week there is a potential for a race using edge triggered events, so I have an open PR (#2655) to switch to level triggered. Once that got merged, I knew that the while true was a potential issue, so my plan was to remove it and only loop a few times before switching to the next event. The whole reason for the while true was using edge triggering. Not for performance reasons. |
Beta Was this translation helpful? Give feedback.
The whole reason for the while true was because we were using edge triggered epoll events. We actually found last week there is a potential for a race using edge triggered events, so I have an open PR (#2655) to switch to level triggered. Once that got merged, I knew that the while true was a potential issue, so my plan was to remove it and only loop a few times before switching to the next event.
The whole reason for the while true was using edge triggering. Not for performance reasons.