ssl handshake operation timed out on Python 3.3.2

Antoine Pitrou solipsis at pitrou.net
Tue Jul 9 12:08:01 CEST 2013


Benedict Verheyen <benedict.verheyen <at> gmail.com> writes:
> 
> Hi,
> 
> for a project, I need to post data to some aspx pages.
> The aspx pages are hosted by another company.
> I develop on a virtual Debian Wheezy (Virtual box) running on Windows.
> I couldn't get the code to run either on Windows nor Linux.
> 
> On my testserver (also a Debian Linux Wheezy) however, the code works with 
> Python 2.7.3 but not with Python 3.3.2. Another difference is that the 
> testserver has a direct ip, so nothing in between the machine and the 
> internet. I checked the firewall, the traffic passes without a problem.
> 
> The error I get is that the SSL handshake operation timed out.
> I tried some code that specifies the ssl protocol but the results are the 
> same.

This may be a IIS-specific problem.
Take a look at
http://stackoverflow.com/questions/16365483/iis-7-5-mercurial-setup-ignoring-maxallowedcontentlength
http://bz.selenic.com/show_bug.cgi?id=3905
http://bugs.python.org/issue17948

Otherwise, dumping network traffic with Wireshark could give you some hints
at to what is different between the SSL handshakes in the two setups.

Regards

Antoine.





More information about the Python-list mailing list