ruby/ruby — pull request #535 by mohamedhafez (2014-02-16 10:50:38+00:00)
Title: read_nonblock on a partial TLS record should result in an IO::WaitReadable

Currently in JRuby, trying to read from an SSL socket with only a partial TLS record results in spinning indefinitely until the rest of the record comes in (issue https://github.com/jruby/jruby/issues/1280). This will make sure that a non blocking read correctly results in a IO::WaitReadable in that case instead.