zaadjis created JRUBY-6516: ------------------------------ Summary: IO.select times out with ssl connection Key: JRUBY-6516 URL: https://jira.codehaus.org/browse/JRUBY-6516 Project: JRuby Issue Type: Bug Components: Core Classes/Modules, OpenSSL Affects Versions: JRuby 1.6.7 Reporter: zaadjis Attachments: google_ssl_test.rb
IO.select seems to _hang_ (and timeout) when it should not (works on MRI): {noformat} $ ruby --version ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] $ ruby google_ssl_test.rb opening connection to encrypted.google.com... ..snip.. #<Net::HTTPOK 200 OK readbody=true> $ rvm use jruby $ ruby --version jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (OpenJDK 64-Bit Server VM 1.6.0_23) [linux-amd64-java] $ ruby google_ssl_test.rb opening connection to encrypted.google.com... ..snip.. Timeout::Error: execution expired (IO.select == nil) rbuf_fill at google_ssl_test.rb:12 read at .rvm/rubies/jruby-1.6.7/lib/ruby/1.8/net/protocol.rb:86 read_chunked at .rvm/rubies/jruby-1.6.7/lib/ruby/1.8/net/http.rb:2238 read_body_0 at .rvm/rubies/jruby-1.6.7/lib/ruby/1.8/net/http.rb:2213 read_body at .rvm/rubies/jruby-1.6.7/lib/ruby/1.8/net/http.rb:2179 body at .rvm/rubies/jruby-1.6.7/lib/ruby/1.8/net/http.rb:2204 reading_body at .rvm/rubies/jruby-1.6.7/lib/ruby/1.8/net/http.rb:2143 request at .rvm/rubies/jruby-1.6.7/lib/ruby/1.8/net/http.rb:1053 __file__ at google_ssl_test.rb:24 start at .rvm/rubies/jruby-1.6.7/lib/ruby/1.8/net/http.rb:543 (root) at google_ssl_test.rb:24 {noformat} Note that the attached [^google_ssl_test.rb] contains a patch to net/http for JRUBY-6511. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email