[#68478] Looking for MRI projects for Ruby Google Summer of Code 2015 — Tony Arcieri <bascule@...>

Hi ruby-core,

10 messages 2015/03/10

[ruby-core:68507] Re: [Ruby trunk - Feature #10532] [PATCH] accept_nonblock supports "exception: false"

From: Nobuyoshi Nakada <nobu@...>
Date: 2015-03-12 12:53:23 UTC
List: ruby-core #68507
On 2015/03/12 17:38, Nobuyoshi Nakada wrote:
> On 2015/03/12 12:08, Eric Wong wrote:
>> I think the st_delete call in rb_get_kwargs interacts badly with with
>> keyword optimizations ko1 did in 2.2.  My work-in-progress patch
>> gets stuck on the OpenSSL read_nonblock (from
>> ext/openssl/lib/openssl/buffering.rb) in test/openssl/test_ssl.rb
> 
> It is an intentional behavior.
> 
> Add this after `rb_get_kwargs()` call.
> 
>     if (except != Qundef)
> 	rb_hash_aset(opts, ID2SYM(id_exception), except);

Or you can just `rb_hash_lookup2(opts, ID2SYM(id_exception), Qundef)`,
if you want to pass the whole options without checking.

-- 
Nobu Nakada

In This Thread