Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 91672 invoked from network); 13 Sep 2010 22:29:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Sep 2010 22:29:55 -0000 Received: (qmail 18542 invoked by uid 500); 13 Sep 2010 22:29:51 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 18454 invoked by uid 500); 13 Sep 2010 22:29:51 -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 18445 invoked by uid 99); 13 Sep 2010 22:29:50 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Sep 2010 22:29:50 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [195.245.230.115] (HELO mail57.messagelabs.com) (195.245.230.115) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 13 Sep 2010 22:29:26 +0000 X-VirusChecked: Checked X-Env-Sender: Brett.Dellegrazie@Intact-is.com X-Msg-Ref: server-4.tower-57.messagelabs.com!1284416945!27699130!1 X-StarScan-Version: 6.2.4; banners=intact-is.com,-,- X-Originating-IP: [217.32.221.10] Received: (qmail 23046 invoked from network); 13 Sep 2010 22:29:05 -0000 Received: from unknown (HELO ukactex01.InServe.local) (217.32.221.10) by server-4.tower-57.messagelabs.com with SMTP; 13 Sep 2010 22:29:05 -0000 Received: from 192.168.128.33 ([192.168.128.33]) by ukactex01.InServe.local ([10.128.1.10]) with Microsoft Exchange Server HTTP-DAV ; Mon, 13 Sep 2010 22:28:24 +0000 Received: from bdellegrazie-t500 by owa.intact-is.com; 13 Sep 2010 23:28:24 +0100 Subject: Re: Tomcat AJP APR connector to mod_jk can result in SEND_BODY_CHUNK message after END_RESPONSE message, was Re: unusual mod_jk 1.2.30 log messages From: Brett Delle Grazie To: users@tomcat.apache.org In-Reply-To: <4C8E6244.3020201@apache.org> References: <4C8E6244.3020201@apache.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Organization: Intact Integrated Services Date: Mon, 13 Sep 2010 23:28:24 +0100 Message-ID: <1284416904.2273.5.camel@bdellegrazie-t500> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, 2010-09-13 at 19:41 +0200, Mladen Turk wrote: > On 09/13/2010 07:15 PM, Brett Delle Grazie wrote: > > > > Our problem is that in a servlet that retrieves a file that is then se= nt > > to the client we are receiving a 'flush' message _after_ the > > END_RESPONSE message. On the next request, mod_jk sees this a breach i= n > > the protocol, closes the socket and results in poor performance and > > missed requests. > > > > >=20 > The workaround would be to drop any flush messages > after the END_RESPONSE check. >=20 > However, this is obvious error of the server side. > END_RESPOSE in AJP protocol reflects the Socket.close() > so any flush (or read or write) on that socket would > throw an exception if the non-AJP protocol was used > inside that servlet/stream. >=20 > Detaching AJP streams from the servlet and using them > as a OutputStream is not very well handled in Tomcat. > I suppose if using APR the entire thing would even crash the JVM. >=20 > Trying to deal with that on mod_jk side would have my strong -1. And I would agree with that whole heartedly. So I guess the APR AJP connector implementation needs to be reviewed... I am looking but as I'm not familiar with the code any help or pointers would be appreciated. Should I raise a bugzilla bug? Thanks, >=20 >=20 > Regards --=20 Best Regards, Brett Delle Grazie ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email=20 ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org