[Rev-talk] [PATCH] make openssl-nonblock more compatible with Ruby 1.9.2 preview 2
tony at medioh.com
Wed Dec 16 00:12:36 EST 2009
Hi, I pushed your patch to github.
I'll try to release a new openssl-nonblock gem soon, but for now I'm having
issues with Gemcutter.
On Fri, Dec 4, 2009 at 6:45 PM, Tony Arcieri <tony at medioh.com> wrote:
> Thanks! Awhile ago I was asking Ruby Core about what the final names for
> these would be. Guess they're decided now.
> I actually spun Rev's OpenSSL nonblocking support off into its own gem:
> I've been meaning to switch Rev to depend on the openssl-nonblock gem (much
> in the way I spun off iobuffer into its own gem), and in fact the names of
> these exceptions were one of the things I was waiting on. This gem
> "monkeypatches" (in C code!) the Ruby SSL classes with nonblocking support.
> If I adjust the names of these exceptions in this gem, it should present an
> API which is fully compatible with Ruby 1.9.2 and is available to any
> application running on any other version of Ruby.
> I can make the same changes to this gem, or you can submit another patch,
> if you like. Given this development, I'd really like to switch Rev to use
> the openssl-nonblock gem.
> On Fri, Dec 4, 2009 at 6:08 PM, Young Hyun <youngh at caida.org> wrote:
>> Here's a small patch to make openssl-nonblock more compatible with Ruby
>> 1.9.2 preview 2. Specifically, ReadAgain and WriteAgain now include
>> IO::WaitReadable and IO::WaitWritable,
>> respectively. This change allows a single code base to work with either
>> Ruby 1.9.2 preview 2 or with openssl-nonblock on older Ruby versions. I've
>> only tested this on ruby 1.8.7-p174.
>> Rather than directly rescuing ReadAgain, one should rescue
>> IO::WaitReadable (etc.) as described in the Ruby 1.9.2 preview 2 RDoc.
> Tony Arcieri
Medioh! A Kudelski Brand
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rev-talk