Taylor Carpenter wrote:
Hello,
I was getting 500 read timeouts trying to download a 2MB file at around
1.5MB (downloading in chunks) with ActiveState Perl and Crypt::SSLeay
v0.51 compiled against OpenSSL v0.9.7c.
I then tried the same script on a Linux box and it worked fine. I then
noticed I was using IO::Socket::SSL and Net::SSLeay rather than
Crypt::SSLeay on the Linux machine, so I uninstalled Crypt::SSLeay on
the windows machine and installed the ppm module Net::SSLeay v1.25. It
still timed out.
So I installed Crypt::SSLeay on the Linux machine and it did not work.
After all this I noticed that I had both OpenSSL 0.9.6g and 0.9.7c. The
Net::SSLeay was compiled against the 0.9.6g. I installed a version
compiled against 0.9.7c and it failed on the download also.
Also downloads were working from the site just a couple of weeks ago,
and my Crypt::SSLeay install and OpenSSL were not updated or modified.
I suppose something could have changed with the server that is causing a
problem to show up in OpenSSL, but I don't know.
I am having to recompile any modules that need SSL support for the older OpenSSL
library, which is not an attractive solution.
Hi Taylor,
I think you have worked up this issue pretty well and I really have
no additional insight. First, I might try the latest releases of
openssl and see if they have your problem fixed:
openssl-0.9.7d
openssl-0.9.6m
Also, if there is a occuring on the Crypt::SSLeay on Windows, I am
not sure that this would be happening in the Crypt::SSLeay layer
itself, as Crypt::SSLeay does not implement timeouts effectively
on windows to my knowledge as it uses alarm() to implement this
on unix platforms, and that system call has not been implemented
on windows perl versions.
If this SSL site has a public URL, I could ping it myself
using an older OpenSSL / Crypt::SSLeay and share these results.
Regards,
Josh
________________________________________________________________________
Josh Chamas, Founder | NodeWorks - http://www.nodeworks.com
Chamas Enterprises Inc. | NodeWorks Directory - http://dir.nodeworks.com
http://www.chamas.com | Apache::ASP - http://www.apache-asp.org