Forum: Ruby-core [Ruby 1.9 - Feature #4849][Open] io/wait should have a way to avoid FIONREAD

Posted by Eric Wong (Guest)
on 2011-06-07 00:48
(Received via mailing list)
Issue #4849 has been reported by Eric Wong.

----------------------------------------
Feature #4849: io/wait should have a way to avoid FIONREAD
http://redmine.ruby-lang.org/issues/4849

Author: Eric Wong
Status: Open
Priority: Low
Assignee:
Category: ext
Target version: 1.9.x


I would like an API method for io/wait which bypasses FIONREAD.  Some IO
objects I work with (e.g. Linux eventfd[1]) 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).

[1] http://bogomips.org/sleepy_penguin/SleepyPenguin/E...
Posted by mame (Yusuke Endoh) (Guest)
on 2012-03-25 09:13
(Received via mailing list)
Issue #4849 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned
Assignee set to nobu (Nobuyoshi Nakada)


----------------------------------------
Feature #4849: io/wait should have a way to avoid FIONREAD
https://bugs.ruby-lang.org/issues/4849#change-25133

Author: normalperson (Eric Wong)
Status: Assigned
Priority: Low
Assignee: nobu (Nobuyoshi Nakada)
Category: ext
Target version: 2.0.0


I would like an API method for io/wait which bypasses FIONREAD.  Some IO
objects I work with (e.g. Linux eventfd[1]) 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).

[1] http://bogomips.org/sleepy_penguin/SleepyPenguin/E...
Posted by mame (Yusuke Endoh) (Guest)
on 2012-11-24 05:01
(Received via mailing list)
Issue #4849 has been updated by mame (Yusuke Endoh).

Target version changed from 2.0.0 to next minor


----------------------------------------
Feature #4849: io/wait should have a way to avoid FIONREAD
https://bugs.ruby-lang.org/issues/4849#change-33771

Author: normalperson (Eric Wong)
Status: Assigned
Priority: Low
Assignee: nobu (Nobuyoshi Nakada)
Category: ext
Target version: next minor


I would like an API method for io/wait which bypasses FIONREAD.  Some IO
objects I work with (e.g. Linux eventfd[1]) 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).

[1] http://bogomips.org/sleepy_penguin/SleepyPenguin/E...
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.