Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 30736 invoked from network); 5 Feb 2003 12:21:32 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 5 Feb 2003 12:21:32 -0000 Received: (qmail 5797 invoked by uid 97); 5 Feb 2003 12:22:59 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 5790 invoked from network); 5 Feb 2003 12:22:59 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 5 Feb 2003 12:22:59 -0000 Received: (qmail 28298 invoked by uid 500); 5 Feb 2003 12:21:04 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: 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 28265 invoked from network); 5 Feb 2003 12:21:04 -0000 Received: from mail.pmh.com (HELO pmh-mail.fh.pmh.com) (209.119.86.10) by daedalus.apache.org with SMTP; 5 Feb 2003 12:21:04 -0000 Received: by mail.pmh.com with Internet Mail Service (5.5.2653.19) id <1KJGPL0Q>; Wed, 5 Feb 2003 07:21:09 -0500 Message-ID: <83F0258A9996D311B14200A0C98F173602F22DDA@aas-internet.aas.com> From: "Turner, John" To: 'Tomcat Users List' Subject: RE: tomcat's serlvet container and http Date: Wed, 5 Feb 2003 07:21:09 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Perhaps you could also post this on tomcat-dev. You might get a quicker response. John -----Original Message----- From: rf [mailto:rufoo2001@yahoo.com] Sent: Wednesday, February 05, 2003 12:37 AM To: tomcat-user@jakarta.apache.org Subject: Re: tomcat's serlvet container and http Hello No answer to any of the questions below? Rf Subject: tomcat's serlvet container and http From: rf Date: 2003-02-03 1:59:58 Hello I have some questions related to how tomcat's servlet container handles some HTTP/1.1 issues. Understanding these, I think, would be beneficial in improving the performance of my web-application. Here they go: 1. How can my servlet respond with transfer encoding as chunked? When is my serlvet's OutputStream committed? I dont have all my data ready, I want send it out in chunks - how do I do it? 2. How can I use "100 Continue" response header? This is usually used on slow links, but I want to use it when my processing is slow. My servlet is doing some processing and is going to take some more time - how do I inform this to my client? Can I just set HttpServletResponse.setStatus (SC_CONTINUE)? (Can this response be sent more than once?) If this method is not right for the scenario, what is the recommended way of informing the client to patiently wait for some more time? 3. The response in HTTP/1.1 can have "footers" in addition to "headers", how do I set a "footer"? I guess we cannot use HttpServletResponse.setHeader because the servlet spec says setting a header has no effect if the response is already committed. 4. Persistant connections - is this configurable in a tomcat? It might be the case that this is not something a user should bother about, the servlet container will take care of it. What does tomcat do? Whenever needed, I want to recommend my client to use a persistant connection for following requests. Can I do it? An IE question: what factors determine that IE should use a persistant connection? 5. If-modified-since header. There is a getLastModified method in the servlet interface, this returns a long(for date). I guess I should implement this method for tomcat to respect the if-modified-since header. I recently implemented a caching filter, which intelligently uses the default servlet to serve cached static content. But since the former method is simple and more effective, I would like to know when IE uses this header. Since this header is optional, how do I recommend IE to use it? Thank you, ~rf __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org