io/wait should have a way to avoid FIONREAD
I would like an API method for io/wait which bypasses FIONREAD. Some IO
objects I work with (e.g. Linux eventfd) to not support FIONREAD.
I can implement any proposed API for io/wait, but I don't know what it should
be. Perhaps just "IO#wait_readable", since I also have
http://redmine.ruby-lang.org/issues/4646 open for IO#wait_writable.
Meanwhile, I will use IO.select. I believe IO#wait_* will be a better
API that is easier-to-use and potentially faster (it can bypass array
scanning and use poll() for high FDs in Linux).
wait.c: poll over nread
- ext/io/wait/wait.c (io_ready_p, io_wait_readable): try polling first and check FIONREAD optionally to see if EOF. [ruby-core:36805] [Feature #4849]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Updated by nobu (Nobuyoshi Nakada) almost 4 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100