[ruby-core:68943] [Ruby trunk - Feature #11081] [Open] [PATCH] stdlib: use IO#wait_*able instead of IO.select when possible

From: normalperson@...
Date: 2015-04-21 03:52:42 UTC
List: ruby-core #68943
Issue #11081 has been reported by Eric Wong.

----------------------------------------
Feature #11081: [PATCH] stdlib: use IO#wait_*able instead of IO.select when possible
https://bugs.ruby-lang.org/issues/11081

* Author: Eric Wong
* Status: Open
* Priority: Normal
* Assignee: Akira Tanaka
----------------------------------------
In case a process encounters high-numbered FDs, this allows
consistent performance on systems with ppoll support.
[ruby-core:35572]

* ext/socket/lib/socket.rb (connect_nonblock): use IO#wait_writable
* lib/drb/drb.rb (DRB::DRbTCPSocket#alive?): use IO#wait_readable
* lib/webrick/httpserver.rb (run): ditto
* lib/resolv.rb (request): ditto for single socket case

Pretty trivial since io/wait seems supported everywhere nowadays.
Any objections?


---Files--------------------------------
0001-stdlib-use-IO-wait_-able-instead-of-IO.select-when-p.patch (3.26 KB)


-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next