[#69084] [Ruby trunk - Feature #11124] [Open] [PATCH] lib/*: use monotonic clock for timeouts — normalperson@...
Issue #11124 has been reported by Eric Wong.
5 messages
2015/05/06
[#69138] [Ruby trunk - Feature #11136] [PATCH] webrick: avoid fcntl module — nobu@...
Issue #11136 has been updated by Nobuyoshi Nakada.
3 messages
2015/05/12
[#69160] [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start — nobu@...
Issue #11146 has been updated by Nobuyoshi Nakada.
4 messages
2015/05/13
[#69175] Re: [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start
— Eric Wong <normalperson@...>
2015/05/13
nobu@ruby-lang.org wrote:
[ruby-core:69138] [Ruby trunk - Feature #11136] [PATCH] webrick: avoid fcntl module
From:
nobu@...
Date:
2015-05-12 03:02:40 UTC
List:
ruby-core #69138
Issue #11136 has been updated by Nobuyoshi Nakada. After requiring 'io/nonblock', no needs to see if `nonblock=` method is available. And `IO#close_on_exec=` is older than `IO#nonblock=`. ---------------------------------------- Feature #11136: [PATCH] webrick: avoid fcntl module https://bugs.ruby-lang.org/issues/11136#change-52386 * Author: Eric Wong * Status: Open * Priority: Normal * Assignee: Akira Tanaka ---------------------------------------- lib/webrick/utils.rb: simplify by avoiding fcntl IO#nonblock= and IO#close_on_exec= methods are simpler-to-use and potentially more portable to for future OSes. IO#nonblock= and IO#close_on_exec= are also smart enough to avoid redundantly setting flags so a syscall may be avoided. These methods could probably be removed entirely and inlined, but it's unclear if there is 3rd-party code which relies on them. * lib/webrick/utils.rb (set_non_blocking): use IO#nonblock= * (set_close_on_exec): use IO#close_on_exec= Note: next commit will remove the set_close_on_exec call. ---Files-------------------------------- 0001-lib-webrick-utils.rb-simplify-by-avoiding-fcntl.patch (1.74 KB) -- https://bugs.ruby-lang.org/