Posted on 2003-11-16
I have a CFMX page that is using CFCONTENT to feed the user a PDF document. code is the following:
<CFHEADER NAME="content-disposition" VALUE="filename=#filename#">
<CFCONTENT TYPE="application/pdf" FILE="#absFilePath#">
My error log (using <CFERROR> in the Application.cfm) is reporting the following error sometimes:
"The cause of this output exception was that: java.net.SocketException: Connection reset by peer: socket write error. "
I can duplicate the error by cancelling the download before it completes. Also, everything I've seen on the Internet indicates that this is caused by the user cancelling the download. However, I am getting the error more than I think I should.
I was wondering if anyone has encountered this before and if so what caused it and what can be done about it. Is it nothing and I shouldn't worry, or is it something that I can remedy?