You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using mechanize to fetch the following https URL, I get the error listed in the title:
agent=Mechanize.newagent.redirect_ok=:allagent.follow_meta_refresh=trueagent.user_agent="My user agent"agent.keep_alive=falseagent.open_timeout=20agent.read_timeout=20agent.get("https://plus.google.com/u/0/111091089527727420853/posts/QSraHjCsFZk")=>NameError: uninitializedconstantOpenSSL::SSL::Session
I'm not sure if this is related to net-http-persistent-2.5.2 or to jruby-openssl ? If so, let me know and I'll repost there.
I have made sure that Certificate verification works on my dev system. The snippet below works fine:
uri=URI.parse("https://plus.google.com/u/0/111091089527727420853/posts/QSraHjCsFZk")http=Net::HTTP.new(uri.host,uri.port)http.use_ssl=truehttp.verify_mode=OpenSSL::SSL::VERIFY_PEERhttp.request_get(uri.path)=>#<Net::HTTPOK 200 OK readbody=true>
Sorry that this is not as detailed as I'd like it to be. I'm still trying to figure out where I should report this. Since it became visible after I upgraded Mechanize from 2.0.1 to 2.2.1, I'm starting here, ready to move on to underlying libraries as required.
Thanks for any pointers you can give me.
Cheers
Jo
The text was updated successfully, but these errors were encountered:
The source of this bug is net-http-persistent which has a Net::HTTP subclass which reuse SSL sessions to speed up reconnections (50-100ms improvement for https://www.google.com).
You can disable this through private API in mechanize:
m = Mechanize.new
m.agent.reuse_ssl_sessions = false
I'll expose this setting via the Mechanize instance in the next release.
When using mechanize to fetch the following https URL, I get the error listed in the title:
I'm not sure if this is related to net-http-persistent-2.5.2 or to jruby-openssl ? If so, let me know and I'll repost there.
My environment:
Some additional notes:
Sorry that this is not as detailed as I'd like it to be. I'm still trying to figure out where I should report this. Since it became visible after I upgraded Mechanize from 2.0.1 to 2.2.1, I'm starting here, ready to move on to underlying libraries as required.
Thanks for any pointers you can give me.
Cheers
Jo
The text was updated successfully, but these errors were encountered: