History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-2676
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Ola Bini
Reporter: Evan Light
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JRuby

JRuby-OpenSSL frequently hangs on HTTPRequests

Created: 18/Jun/08 09:26 PM   Updated: 14/Aug/08 04:51 AM
Component/s: JRuby-extras
Affects Version/s: JRuby 1.1.2
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Mac OS X Java 1.5.0_13-b05-237


 Description  « Hide
When sending an HTTP GET using JRuby-OpenSSL, the GET hangs more than half of the time.

Relevant stacktrace below:
/Users/light/dev/oss/jruby/trunk/jruby/lib/ruby/1.8/net/protocol.rb:86:in `read': execution expired (Timeout::Error)
from /Users/light/dev/oss/jruby/trunk/jruby/lib/ruby/1.8/net/http.rb:2223:in `read_body_0'
from /Users/light/dev/oss/jruby/trunk/jruby/lib/ruby/1.8/net/http.rb:2184:in `read_body'
from /Users/light/dev/oss/jruby/trunk/jruby/lib/ruby/1.8/net/http.rb:2209:in `body'
from /Users/light/dev/oss/jruby/trunk/jruby/lib/ruby/1.8/net/http.rb:2148:in `reading_body'
from /Users/light/dev/oss/jruby/trunk/jruby/lib/ruby/1.8/net/http.rb:1061:in `request'

With SSL disabled on both the server and client, the request goes through with no problem whatsoever.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Evan Light - 18/Jun/08 09:34 PM
Also occurs on trunk as of now.

Evan Light - 18/Jun/08 09:44 PM
Possibly worth nothing that this happens when using rubyntlm to perform NTLM authentication.

Evan Light - 18/Jun/08 09:44 PM
noting even....

Charles Oliver Nutter - 03/Jul/08 02:37 PM
Half the time sounds like a threading issue. Can you get a dump of threads when it's hanging (java dump, usually ctrl+| or ctrl+break) and maybe provide short server/client scripts that can reproduce it?

Evan Light - 03/Jul/08 02:48 PM
Sadly, I'm fairly confident that I no longer have the implementation that exacerbated this condition.

Ola Bini - 13/Aug/08 08:23 AM
Evan, any more info on this one? Otherwise I'll close it for now since I can't reproduce it.

Ola Bini - 13/Aug/08 12:53 PM
This is the same issue as JRUBY-2597. The problem was that the SSLSocket was blocking on a read when there was still SSL data to process in buffers. It's been fixed on trunk now. There is a disabled performance test that can be run to make sure the performance is still good on those operations.