You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
This is not a fix for issue #1225. This code is wrapped in a if statement:
if (_read.Count > 0 || _write.Count > 0)
Both a counts are 0, causing the select to be called over and over again in a tight loop.
The reason will be displayed to describe this comment to others. Learn more.
Should poll be used in addition to select? Or perhaps thread sleep for 1ms if read and write count are both 0? I don't know the implications of this method so these are just shot-in-the-dark suggestions
The reason will be displayed to describe this comment to others. Learn more.
Akka.NET IO is currently a straight port from Akka JVM, which uses selectors. It will require design changes to switch to async IO. I have done some initial work on this and we might include in some time in the future.
4af2cfb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not a fix for issue #1225. This code is wrapped in a if statement:
if (_read.Count > 0 || _write.Count > 0)
Both a counts are 0, causing the select to be called over and over again in a tight loop.
4af2cfb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should poll be used in addition to select? Or perhaps thread sleep for 1ms if read and write count are both 0? I don't know the implications of this method so these are just shot-in-the-dark suggestions
4af2cfb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is polling even needed? Why do not use something like:
4af2cfb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Akka.NET IO is currently a straight port from Akka JVM, which uses selectors. It will require design changes to switch to async IO. I have done some initial work on this and we might include in some time in the future.