This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes ClientAbortException:  java.net.SocketException: Connection reset by peer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ClientAbortException:  java.net.SocketException: Connection reset by peer" Watch "ClientAbortException:  java.net.SocketException: Connection reset by peer" New topic
Author

ClientAbortException: java.net.SocketException: Connection reset by peer

Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 363
We are writing a fairly large file to the OutputStream of the response in a servlet. On IE (not FF or Safari) we get this error. Any ideas? The code is as follows:



No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 363
FYI, we figured this out. It's a general issue in IE
http://support.microsoft.com/kb/812935 that when using HTTPS to download files the response header can't contain "Cache-Control : no-cache", or
"Cache-Control: no-store".

We simply took out the previous headers and added this:



Thanks to David Mortellaro for finding this.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ClientAbortException: java.net.SocketException: Connection reset by peer