Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 44874DCFE for ; Thu, 25 Oct 2012 12:39:08 +0000 (UTC) Received: (qmail 87127 invoked by uid 500); 25 Oct 2012 12:39:07 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 86609 invoked by uid 500); 25 Oct 2012 12:39:06 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 86582 invoked by uid 99); 25 Oct 2012 12:39:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2012 12:39:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Oct 2012 12:39:03 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id 927C1AB8E; Thu, 25 Oct 2012 12:38:42 +0000 (UTC) From: bugzilla@apache.org To: dev@tomcat.apache.org Subject: [Bug 54019] org.apache.coyote.Response & org.apache.coyote.Request don't call recycle() on notes[] elements. Date: Thu, 25 Oct 2012 12:38:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 7 X-Bugzilla-Component: Connectors X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: frederic.arnoud@gmail.com X-Bugzilla-Status: NEEDINFO X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@tomcat.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=54019 --- Comment #3 from F.Arnoud --- I tried to extract the scheme of main application in a shorter test case. But I cannot reproduce it. 1) For the buffer violation: I can reproduce it but only if I don't respect the contract (using the buffer after END/ERROR or after an IOException, it's a bug in the web application). 2) For the request attribute: I cannot reproduce it, but in the customer application this attribute is set only while processing the BEGIN event. And sometimes, this attribute contains a previous setted value! For case 1 or 2, even if it's a web application error, maybe Tomcat must protect his buffer and attribute while it recycles object. I don't know the philosophy, but IMHO something could be wrong here. A solution, as an option, could be to wrap the servlet request and response and disconnect it totally from background elements since application could use it later. I talk about an option because this need to create new wrappers. But without such wrapper, there's a problem with the recycling in a shared server. I thought it was critical to be able to do this. Personnaly I fixed this in my application with wrapper, anywhere an error occurs I can completely separate running thread from the real tomcat objects. In this application we have a lot of connections, some could be closed while/before processing the begin event! regards, fred -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org