jruby-openssl icon indicating copy to clipboard operation
jruby-openssl copied to clipboard

No existing session to resume

Open dgolombek opened this issue 9 years ago • 2 comments

Environment

  • jruby-openssl 0.9.17
  • net-http-persistent 2.9.4

Expected Behavior

Opening a new session should work.

Actual Behavior

No existing session to resume: org/jruby/ext/openssl/SSLSocket.java:217:in `connect'
/tmp/jetty-0.0.0.0-8080-evergreen.war-_evergreen-any-412843000765214245.dir/webapp/WEB-INF/gems/gems/net-http-persistent-2.9.4/lib/net/http/persistent/ssl_reuse.rb:70:in `connect'
org/jruby/ext/timeout/Timeout.java:115:in `timeout'
/tmp/jetty-0.0.0.0-8080-evergreen.war-_evergreen-any-412843000765214245.dir/webapp/WEB-INF/gems/gems/net-http-persistent-2.9.4/lib/net/http/persistent/ssl_reuse.rb:70:in `connect'
/tmp/jetty-0.0.0.0-8080-evergreen.war-_evergreen-any-412843000765214245.dir/webapp/WEB-INF/lib/jruby-stdlib-1.7.25.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:756:in `do_start'
/tmp/jetty-0.0.0.0-8080-evergreen.war-_evergreen-any-412843000765214245.dir/webapp/WEB-INF/lib/jruby-stdlib-1.7.25.jar!/META-INF/jruby.home/lib/ruby/1.9/net/http.rb:751:in `start'
/tmp/jetty-0.0.0.0-8080-evergreen.war-_evergreen-any-412843000765214245.dir/webapp/WEB-INF/gems/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb:700:in `start'
/tmp/jetty-0.0.0.0-8080-evergreen.war-_evergreen-any-412843000765214245.dir/webapp/WEB-INF/gems/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb:965:in `reset'
/tmp/jetty-0.0.0.0-8080-evergreen.war-_evergreen-any-412843000765214245.dir/webapp/WEB-INF/gems/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb:628:in `connection_for'
/tmp/jetty-0.0.0.0-8080-evergreen.war-_evergreen-any-412843000765214245.dir/webapp/WEB-INF/gems/gems/net-http-persistent-2.9.4/lib/net/http/persistent.rb:994:in `request'
/tmp/jetty-0.0.0.0-8080-evergreen.war-_evergreen-any-412843000765214245.dir/webapp/WEB-INF/gems/gems/faraday-0.9.2/lib/faraday/adapter/net_http_persistent.rb:25:in `perform_request'
/tmp/jetty-0.0.0.0-8080-evergreen.war-_evergreen-any-412843000765214245.dir/webapp/WEB-INF/gems/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:40:in `call'
/tmp/jetty-0.0.0.0-8080-evergreen.war-_evergreen-any-412843000765214245.dir/webapp/WEB-INF/gems/gems/faraday-0.9.2/lib/faraday/adapter/net_http_persistent.rb:21:in `with_net_http_connection'
/tmp/jetty-0.0.0.0-8080-evergreen.war-_evergreen-any-412843000765214245.dir/webapp/WEB-INF/gems/gems/faraday-0.9.2/lib/faraday/adapter/net_http.rb:32:in `call'

Calls from up in Faraday and higher elided. This started after upgrading from 0.9.16 to 0.9.17 and went away as soon as we reverted. It happened on every session that was created. I believe this was caused by ed95b2c7bf85c3b4d3ff430cf7656cc4ac92535d

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/35343015-no-existing-session-to-resume?utm_campaign=plugin&utm_content=tracker%2F136995&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136995&utm_medium=issues&utm_source=github).

dgolombek avatar Jun 21 '16 01:06 dgolombek

would appreciate an isolated .rb reproduction case - to confirm the actual code is not assuming to resume a non existing session (or to see if ed95b2c can get tuned some way to handle the case). thanks!

kares avatar Jun 21 '16 07:06 kares

Yep, will do -- sorry about the poor bug report yesterday, I was rushing. I suspect this is a bad interaction between Faraday, Net::Http::Persistent, and jruby-openssl. This is a heavily threaded app that's making a lot of connections to a lot of different endpoints -- hopefully the testcase will be simpler.

Thanks Dave

On Tue, Jun 21, 2016 at 3:49 AM, Karol Bucek [email protected] wrote:

would appreciate an isolated .rb reproduction case - to confirm the actual code is not assuming to resume a non existing session (or to see if ed95b2c https://github.com/jruby/jruby-openssl/commit/ed95b2c7bf85c3b4d3ff430cf7656cc4ac92535d can get tuned some way to handle the case). thanks!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jruby/jruby-openssl/issues/97#issuecomment-227365993, or mute the thread https://github.com/notifications/unsubscribe/AAVDqUfidgP7sv9oZrFgAZ9-z_lDqvbcks5qN5efgaJpZM4I6RaV .

dgolombek avatar Jun 21 '16 13:06 dgolombek