[#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:69129] [Ruby trunk - Feature #11138] [Open] [PATCH] ext/socket/init.c: use SOCK_NONBLOCK if available
From:
normalperson@...
Date:
2015-05-12 00:10:05 UTC
List:
ruby-core #69129
Issue #11138 has been reported by Eric Wong. ---------------------------------------- Feature #11138: [PATCH] ext/socket/init.c: use SOCK_NONBLOCK if available https://bugs.ruby-lang.org/issues/11138 * Author: Eric Wong * Status: Open * Priority: Normal * Assignee: Akira Tanaka ---------------------------------------- [PATCH 1/2] ext/socket/init.c: use SOCK_NONBLOCK if available This saves a system call by allowing us to use SOCK_NONBLOCK in Linux when accept4 is available. Note: I do not agree accept_nonblock should always make accepted sockets non-blocking, and will propose a future API (next patch) to allow controlling whether accepted sockets are non-blocking or not regardless of how they were created. * ext/socket/init.c (cloexec_accept): support nonblock flag and use SOCK_NONBLOCK if possible * ext/socket/init.c (rsock_s_accept_nonblock): update cloexec_accept call * ext/socket/init.c (accept_blocking): ditto for blocking * test/socket/test_nonblock.rb: check nonblock? on accepted socket ---Files-------------------------------- 0001-ext-socket-init.c-use-SOCK_NONBLOCK-if-available.patch (3.83 KB) -- https://bugs.ruby-lang.org/