Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 41759 invoked from network); 1 May 2002 11:20:43 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 May 2002 11:20:43 -0000 Received: (qmail 26200 invoked by uid 97); 1 May 2002 11:20:37 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 26090 invoked by alias); 1 May 2002 11:20:36 -0000 Delivered-To: jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 26070 invoked by uid 97); 1 May 2002 11:20:36 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 26058 invoked by uid 98); 1 May 2002 11:20:35 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <001e01c1f102$31ef9ce0$6501a8c0@apache.org> From: "Remy Maucherat" To: "Tomcat Developers List" References: <3CCFA08B.5060005@cs.stanford.edu> Subject: Re: SSI Servlet has big problems Date: Wed, 1 May 2002 04:18:59 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: localhost.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > Hi everyone. > > I ran into bug #6299 today (two server-side includes fail with buffering > on), did some debugging, and found the cause of it. > > I have no doubt that a bunch of other bugs in bugzilla are caused by the > same issue. > > Basically, the class and its helper classes have a pretty serious design > flaw: they declare lots of information static ( like the servlet output > stream ) that should not be shared between threads and/or instances of > the servlet. > > Specifically, SsiInvokerServlet.java declares SsiMediator as static. > SsiMediator in turn declares LOTS of things static, like the request, > response, output stream, etc. > > This is probably causing garbled output, socket closed errors, etc. when > multiple users are viewing .shtml files at the same time and/or when > users are viewing output with buffered=true. > > Implementing the SingleThreadedServlet interface will not help this problem. Are you sure ? (I didn't look at the code at all, so I'm just wondering) Otherwise, it would be a really cheap way to make it work. Thanks for looking into it anyway. > Are the two authors still mantaining this code? Bip Thelin? Amy Roh? Not really. I didn't hear about Bip for a while, and Amy has been busy with other things. Usually an easy way to get commit access if you have time to dedicate to contributing is to take over the maintenance of some abandoned component(s). CGI also needs a maintainer, BTW. Remy -- To unsubscribe, e-mail: For additional commands, e-mail: