Re: How to use HttpServletResponse.setContentLength() to support persistent (keep-alive) HTTP connections?
Marco Trevisan <[email protected]> Wed, 25 Aug 2004 09:22:29 -0600
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Daniel Joshua wrote: >Hi all, > >How do I use HttpServletResponse.setContentLength() to support persistent >(keep-alive) HTTP connections (I heard this helps slightly speed up surfing, >as the same connection is re-used)? Restricting the argument to Tomcat: you (the servlet developer) aren't entirely in charge of the http protocol[1]. Maybe other servlet containers give more freedom (I'd really love to play with 100 headers ...) [1] http://archives.real-time.com/pipermail/tomcat-devel/2003-February/046550.html "you actually shouldn't try doing anything with it. Again, it is a protocol feature," -- Marco ___________________________________________________________________________ To unsubscribe, send email to [email protected] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html