André Warnier wrote:
Gerardo Corro wrote:
Trying gmail
That works.
Of course, you're going to expect people here to look at 50 lines of code.
Oh well..
Hi all,
I have a file download servlet running on Tomcat, the code is
...
However once in a while I get an error that prevents files from being
downloaded:
DownloadException: java.net.SocketException: Broken pipe
at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:366)
That looks to me like the client just went away in the middle of the
download.
If so, then you're out of luck, there is nothing you can do to prevent
that (I mean other than displaying interesting information while the
download is taking place, so that they don't feel like going away.)
If your point is to avoid the lines in the log, then I guess you could
just plan for it and catch that exception nicely, and just write in the
log "damn, he's gone" or something.
Addendum : if your point is to download the contents of a file, and Tomcat being a really
cool webserver, you may want to have a look at the bottom of this page (or the equivalent
for your version of Tomcat) : http://tomcat.apache.org/tomcat-6.0-doc/aio.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org