Closed PabloLefort closed 8 years ago
Unexpected EOF in this instance almost certainly means that there is a problem with your TLS handshake, and the server just tore the connection down rather than establish the TLS connection.
Firstly, you should install pyasn1 and ndg-httpsclient in addition to your current libraries: that will resolve your possible SNI issue. Then, if that didn't help, you should let me know what version of OpenSSL is installed in your system.
@Lukasa Already installed those libs, alike, running with --upgrade tells Requirement already up-to-date
@PabloLefort And your OpenSSL version, please?
@Lukasa OpenSSl version: OpenSSL 1.0.1e-fips 11 Feb 2013
Right, so there's no immediately obvious set of problems there. Are you familiar with Wireshark? If so, it'd be very convenient if you could grab a packet capture of the failing connection.
I'm not familiar but i will try to grab the packet and post the response. Thanks.
@Lukasa So, after some investigation, installed tcpdump
to see whats happening with the packets.
On my local env the connection was through TLS
, but in the server first try to connect with TLS
and fallback to SSL
. This raise EOF Exception
.
Going foward, there was some firewall closing every connection. I changed it and it works like a charm!
Thanks for all.
I would like to note, that problems may be relating on the proxy settings. Unset https_proxy and http_proxy.
Thanks! @VladislavMesh 🚀
Hi, i have a service for send email through SMTP with Mandrill.
Throws this exception trace:
Env: Red Hat 4.8.2-13, Python: 2.7.5 Libs:
Any suggestions?
Going with this answer did not change anything.
Thanks in advance.