iande / onstomp

A STOMP messaging client library for Ruby
http://mathish.com/projects/onstomp.html
Other
23 stars 11 forks source link

No non-blocking IO for SSL in Ruby 1.8.7 #6

Closed iande closed 13 years ago

iande commented 13 years ago

Ruby 1.8.7 does not have native support for non-blocking IO over SSL connections. There is a gem that monkey patches support, but it is a C extension, and not suitable for use with JRuby.

This was a huge over-sight on my part, and I only caught it due to the full-stack tests. As soon as a stable version of JRuby exists that provides 1.9.2 functionality, I think I'm going to drop all Ruby 1.8 support from this gem.

iande commented 13 years ago

On the plus side, the use of IO.select should still work with OpenSSL connections. So, I may be able to patch SSL sockets with blocking read/write methods and be okay, so long as IO.select doesn't lie to us.