Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 49931 invoked from network); 7 Jun 2005 08:03:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jun 2005 08:03:30 -0000 Received: (qmail 29771 invoked by uid 500); 7 Jun 2005 08:03:13 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 29742 invoked by uid 500); 7 Jun 2005 08:03:12 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 29729 invoked by uid 99); 7 Jun 2005 08:03:12 -0000 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=HTML_10_20,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from smtp-vbr15.xs4all.nl (HELO smtp-vbr15.xs4all.nl) (194.109.24.35) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 07 Jun 2005 01:03:10 -0700 Received: from smtp.realworks.nl (smtp.realworks.nl [194.109.157.47]) by smtp-vbr15.xs4all.nl (8.13.3/8.13.3) with ESMTP id j577RUgr061133; Tue, 7 Jun 2005 09:27:30 +0200 (CEST) (envelope-from ronald-mailinglist@base.nl) Received: from amavis by smtp.realworks.nl with virus-scanned (Exim 3.35 #1 (Debian)) id 1DfYUj-0004MF-00; Tue, 07 Jun 2005 09:27:29 +0200 Received: from smtp.realworks.nl ([127.0.0.1]) by localhost (rwlinux12 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13746-32; Tue, 7 Jun 2005 09:27:29 +0200 (CEST) Received: from [10.0.10.55] (helo=rwlinux5.realworks.colo) by smtp.realworks.nl with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.35 #1 (Debian)) id 1DfYUj-0004M1-00; Tue, 07 Jun 2005 09:27:29 +0200 Received: from localhost ([127.0.0.1] helo=rwlinux5) by rwlinux5.realworks.colo with esmtp (Exim 3.35 #1 (Debian)) id 1DfYUj-0003LV-00; Tue, 07 Jun 2005 09:27:29 +0200 Received: from office.base.nl ([213.53.208.101]) by rwlinux5 ([10.0.10.55]) with HTTP (Apache Tomcat/5.0.28); Tue, 07 Jun 2005 09:27:29 +0200 Message-ID: <21230799.1118129249198.JavaMail.batch@localhost> Date: Tue, 7 Jun 2005 09:27:29 +0200 (CEST) From: Ronald Klop To: lapson lee Subject: Re: Urgent: how to detect client has closed connection Cc: tomcat-user@jakarta.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3127_3394944.1118129249009" X-Mailer: BaseNet/WebMail (2.0.3-STABLE-29) Importance: Normal X-Priority: 3 (Normal) References: X-Originating-User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_3127_3394944.1118129249009 Content-Type: text/plain; format=flowed; charset=us-ascii Content-Transfer-Encoding: 7bit Sorry, But I have no more suggestions. I would have to debug it myself than and don't have the time for that. Maybe somebody else on the list can tell you more. Maybe posting some snippets of code helps. Ronald. On Thu Jun 02 22:25:12 CEST 2005 lapson lee wrote: > Hey Ronald, > > Thanks for your help. I checked the code. I use default out.. and it indeed > was using javax.servlet.jsp.JspWriter, but it does not throw an IOException. > Do you know why? > > Thanks in advance... > > Luke > > > > > >From: Ronald Klop > >Reply-To: "Tomcat Users List" > >To: Tomcat Users List > >Subject: Re: Urgent: how to detect client has closed connection > >Date: Wed, 1 Jun 2005 14:14:08 +0200 (CEST) > > > >What Writer are you using? If you do response.getWriter() you will get a > >PrintWriter and the docs tell you that PrintWriter doesn't throw > >exceptions, so your app keeps printing to the writer after an error. (A > >closed connection is an IOException.) > >If you use the default out property of a jsp page you get a JspWriter which > >does throw exeptions on error. > > > >Ronald. > > > >On Tue May 31 19:42:30 CEST 2005 Tomcat Users List > > wrote: > >>Hey guys, > >> > >>I have a problem right now. I wrote a Jsp page to keep sending data to > >>client browser. However, no exception was thrown when I use out.print() to > >>send something to client even after client has closed his web browser. My > >>question is how can i know his browser is closed, so I can stop sending. > >>Also, from the tomcat logs, the "reset by peer" socket exception was > >>thrown by Tomcat. however, seems i don't have a way to catch it. > >> > >>Can anybody help me with this one... I will be really thankful to any help > >>from you. > >> > >>Thanks, > >>Luke > >> > >>_________________________________________________________________ > >>Express yourself instantly with MSN Messenger! Download today it's FREE! > >>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > >> > >> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > >> > > > > _________________________________________________________________ > Don't just search. Find. Check out the new MSN Search! > http://search.msn.com/ > ------=_Part_3127_3394944.1118129249009--