Hi all, I'm trying to debug an application that serves small (20-100k) media files of various types (.swf, .wmv) to Windows Media Player (primarily versions 9, 10, 11). The problem I'm experiencing is that I'm seeing a SocketException with about 50% of the requests. I get one of the two following log messages: ClientAbortException: java.net.SocketException: Broken pipe ClientAbortException: java.net.SocketException: Connection reset
Here is the servlet code that is being run when the exception occurs: FileInputStream in = new FileInputStream(file); OutputStream out = resp.getOutputStream(); byte[] buf = new byte[4096]; int count = 0; while ((count = in.read(buf)) >= 0) { out.write(buf, 0, count); } in.close(); out.flush(); out.close(); I've scoured this and other forums, and I've only found the explanation that "this means the client is closing the connection before the server can send all the bytes". I'd be willing to believe this if it weren't happening to 50% of 600,000 requests per day. Has anyone else seen this problem? Any ideas on what's going on? Best, Garth --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]