romange / helio

A modern framework for backend development based on io_uring Linux interface
Apache License 2.0
435 stars 49 forks source link

fix: avoid starvation of processing sleeping fibers #299

Closed romange closed 2 months ago

romange commented 2 months ago

Before - when the CPU is very busy it could reach the point where it never processed sleeping fibers. Now we reduce the probability of it happens by limiting the number of times we can shortcut the flow before reaching the ProcessSleepFibers function.