drbrain / net-http-persistent

Thread-safe persistent connections with Net::HTTP
http://seattlerb.rubyforge.org/net-http-persistent
339 stars 117 forks source link

SSL failure while reusing sessions #23

Closed drbrain closed 11 years ago

drbrain commented 12 years ago

From Rich_Morin on irc://chat.freenode.net/#ruby-lang

"https://www.google.com/accounts/Logout?…

/Library/Ruby/Gems/1.8/gems/net-http-persistent-2.6/lib/net/http/persistent/ssl_reuse.rb:117:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read finished A: unexpected message (OpenSSL::SSL::SSLError)
    from /Library/Ruby/Gems/1.8/gems/net-http-persistent-2.6/lib/net/http/persistent/ssl_reuse.rb:117:in `connect'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/http.rb:548:in `start'
    from /Library/Ruby/Gems/1.8/gems/net-http-persistent-2.6/lib/net/http/persistent.rb:768:in `reset'
    from /Library/Ruby/Gems/1.8/gems/net-http-persistent-2.6/lib/net/http/persistent.rb:503:in `connection_for'
    from /Library/Ruby/Gems/1.8/gems/net-http-persistent-2.6/lib/net/http/persistent.rb:806:in `request'
mcrmfc commented 12 years ago

I am also seeing this issue. I have a bunch of cucumber tests that utilize mechanize and net-http-persistent 2.6 and the tests all hit external sites over http.

setting reuse_ssl_sessions = false, results in all tests passing.

Note: we navigate through a corporate proxy so I guess this could be an issue that only manifests when reusing ssl connections through a proxy (a bit like https://github.com/drbrain/net-http-persistent/issues/15).

I am more than happy to do any investigation if this is not something that is easily replicated in environments without a proxy?

drbrain commented 12 years ago

I am not able to reproduce this with a proxy server (GlimmerBlocker running locally), even with Apple Ruby.

I've only seen the two above reports of this behavior, so more details are welcome.

drbrain commented 11 years ago

Closing due to lack of a way to reproduce this behavior.