Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 5286 invoked from network); 21 Jan 2011 02:10:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jan 2011 02:10:48 -0000 Received: (qmail 4796 invoked by uid 500); 21 Jan 2011 02:10:45 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 4639 invoked by uid 500); 21 Jan 2011 02:10:44 -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 4630 invoked by uid 99); 21 Jan 2011 02:10:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 02:10:44 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of goberman@msn.com designates 65.54.190.98 as permitted sender) Received: from [65.54.190.98] (HELO bay0-omc2-s23.bay0.hotmail.com) (65.54.190.98) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 02:10:36 +0000 Received: from BAY146-W44 ([65.54.190.125]) by bay0-omc2-s23.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 20 Jan 2011 18:10:16 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_f7fcb780-a6c1-48e2-965c-b1d6693000e1_" X-Originating-IP: [99.9.45.73] From: ilya goberman To: Subject: RE: Bug in Tomcat Comet. Event CometEvent.EventType.END is not fied when connection closed. Date: Thu, 20 Jan 2011 20:10:15 -0600 Importance: Normal In-Reply-To: <4D38BA5B.3010104@apache.org> References: ,<4D38BA5B.3010104@apache.org> MIME-Version: 1.0 X-OriginalArrivalTime: 21 Jan 2011 02:10:16.0346 (UTC) FILETIME=[585F7FA0:01CBB910] --_f7fcb780-a6c1-48e2-965c-b1d6693000e1_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable done: https://issues.apache.org/bugzilla/show_bug.cgi?id=3D50627 > Date: Thu=2C 20 Jan 2011 22:42:35 +0000 > From: markt@apache.org > To: users@tomcat.apache.org > Subject: Re: Bug in Tomcat Comet. Event CometEvent.EventType.END is not f= ied when connection closed. >=20 > On 20/01/2011 22:40=2C ilya goberman wrote: > >=20 > > Hello=2C > > I upgraded to Tomcat 7.0.6 and noticed another problem that did not exi= st in Tomcat 6: event CometEvent.EventType.END is not fired when client con= nection is closed. > > It is very easy to duplicate. The server and client code is below. You = would need to open html page in a browser and press "TEST". This should pri= nt "Begin Event" in the server. If you close the browser (close connection)= =2C the "End Event" is not printed. It is printed with Tomcat 6. >=20 > Please create a bugzilla entry for this so it can be tracked. >=20 > Cheers=2C >=20 > Mark >=20 > >=20 > > It is similar to bug https://issues.apache.org/bugzilla/show_bug.cgi?id= =3D50207=2C that marked as fixed. Not sure if it is related or not. > >=20 > > SERVER: > > package test=3B > >=20 > > import java.io.IOException=3B > >=20 > > import javax.servlet.ServletException=3B > > import javax.servlet.http.HttpServlet=3B > >=20 > > import org.apache.catalina.comet.CometEvent=3B > > import org.apache.catalina.comet.CometProcessor=3B > >=20 > > public class TomcatBug extends HttpServlet implements CometProcessor { > >=20 > > public void event(CometEvent event) throws IOException=2C ServletEx= ception { > > if (event.getEventType() =3D=3D CometEvent.EventType.BEGIN) { > > System.out.println("Begin Event")=3B > > } > > else if (event.getEventType() =3D=3D CometEvent.EventType.ERROR= ) { > > System.out.println("Error Event")=3B > > event.close()=3B > > }=20 > > else if (event.getEventType() =3D=3D CometEvent.EventType.END) = { > > System.out.println("End Event")=3B > > event.close()=3B > > } > > } > > } > >=20 > > CLIENT (html): > > > > > > > > test > > > > > > > >=20 > > > >=20 > > > > > >=20 > >=20 > > =20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: users-unsubscribe@tomcat.apache.org > For additional commands=2C e-mail: users-help@tomcat.apache.org >=20 = --_f7fcb780-a6c1-48e2-965c-b1d6693000e1_--