Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8FA2B4D92 for ; Thu, 19 May 2011 16:14:57 +0000 (UTC) Received: (qmail 66101 invoked by uid 500); 19 May 2011 16:14:54 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 65937 invoked by uid 500); 19 May 2011 16:14:54 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 65928 invoked by uid 99); 19 May 2011 16:14:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 16:14:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2011 16:14:46 +0000 Received: from [192.168.245.129] (p549E8B30.dip0.t-ipconnect.de [84.158.139.48]) by tor.combios.es (Postfix) with ESMTPA id ED9CE226183 for ; Thu, 19 May 2011 18:14:24 +0200 (CEST) Message-ID: <4DD541DF.7080402@ice-sa.com> Date: Thu, 19 May 2011 18:14:23 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Tomcat download stream gets broken References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org