Commit 3b61568
authored
server: Yield fiber if running for over 1ms (#5924)
When using epoll as the event loop in debug mode, it has been observed
that the stream consumption from redis in stable state can monopolize
the core allowing no other fibers to run.
To avoid this a yield is added similar to
ListenerInterface::RunAcceptLoop()
Signed-off-by: Abhijat Malviya <[email protected]>1 parent 2a8806a commit 3b61568
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
693 | 693 | | |
694 | 694 | | |
695 | 695 | | |
696 | | - | |
| 696 | + | |
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
701 | 706 | | |
702 | 707 | | |
703 | 708 | | |
| |||
0 commit comments