Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

javax.net.ssl.SSLException: SSL peer shut down incorrectly

843811Sep 15 2008 — edited Sep 23 2008
Hi,

I've written an application to download files over a secure socket. Occasionally it fails with the following exception:

*"javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: SSL peer shut down incorrectly"*

It's always with the same file; which is ~84MB. Sometimes it works, sometimes it doesn't. I think, due to size of the file, the connection is closing, wether that be by my app, the external server or the proxy.

Has anyone come accross this before and found a way of making/configuring something so the success rate is100%?

Additional info: I'm using Java 1.5 and using Apache HTTPClient. This intermittent problem occurs on both Windows and Unix boxes. The proxy is Windows.

Many thanks for any help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 21 2008
Added on Sep 15 2008
5 comments
7,097 views