-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"ssl_version" not applied to excon client #130
Comments
I don't believe there is a way to set the If you're willing, I'd love to be able to merge a pull request to fix this, @Vaselinessa -- I'd be more than willing to answer any questions or provide feedback if you'd like. |
Makes sense. I'll see if I can make time this week. |
Thank you so much for contributing to Savon and HTTPI @Vaselinessa! |
You should be able to install HTTPI v2.1.1 on rubygems.org to pick up this change. It is also available as v2.7.7 as a patch update for the latest HTTPI, for any interested parties. Thanks so much again, for contributing your time! |
I get the error
Excon::Errors::SocketError: SSL_connect SYSCALL returned=5 errno=0 state=unknown state (OpenSSL::SSL::SSLError)
. Specifying an excon globalssl_version
obviates the problem, but specifying anssl_version
in HTTPI does not.TMI:
I am making requests through Savon v 2.3.3, with HTTPI v 2.1.0 and Excon v 0.37.0. My application uses this stack to connect with multiple third-party applications, and the foregoing error arises for only one of them, appslive.com. When I specify
Excon.defaults[:ssl_version] = "TLSv1"
, my request to appslive.com succeeds.My code actually specifies
:ssl_version => :TLSv1
for the Savon client, but this datum is not passed effectively from HTTPI to excon. When debugging my application with a breakpoint inHTTPI::request
, I can find thessl_version
in theHTTPI::Auth::SSL
data but not in theExcon::Connection
, as you can see in the following output. (When I specify a globalssl_version
for excon, thessl_version
does appear in theExcon::Connection
at this breakpoint.)It looks as if the HTTPI adapter is just ineffective for my purpose. Please tell me I'm wrong. Is there a way that I can stipulate a
ssl_version
on a per-request basis?The text was updated successfully, but these errors were encountered: