tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Wiedmann <...@ispsoft.de>
Subject Is response.getServletOutputStream().flush() working
Date Thu, 10 May 2001 15:08:57 GMT

Hi,

subject says it all, but an explanation is missing, of course.
I am talking about TomCat 3.2.1, my observation is this:

  - response.getServletOutputStream() is actually
    org.apache.tomcat.core.BufferedServletOutputStream.flush()

  - This method is calling
    org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush()

  - This method is calling
    org.apache.tomcat.core.BufferedServletOutputStream.doWrite()

  - This method is calling
    org.apache.tomcat.core.ResponseImpl.doWrite()

which is simply appending the collected bytes to the body()
variable. A flush() operation doesn't actually occur.

Please tell me, if there's something wrong with my observation.
If not: Where is the body content actually written?


Thanks in advance,

Jochen

Mime
View raw message