At 12:48 PM 2/24/99 -0800, you wrote:
>"Marc A. Saegesser" wrote:
>
>> I've got a  servlet which needs to run for as long as there is a 
>connection.  
>It monitors events in the real world and sends data back to the client as 
>certain things happen.  The data sent back to the client general comes in 
>100-500 byte clumps and may arrive in a trickle.
>
>What happens if you call flush() on your ServletOutputStream? Does Apache  
>send 
>that to the client or does it hold it until the connection is closed? 

Calling fflush() will ensure that the data gets sent back to Apache, but it
will be buffered there until either 

1) the buffer fills (4KB) 
2) Apache would block waiting for more data from the servlet (UNIX only)
3) the servlet terminates.

Marc Saegesser
--
The world has arrived at an age of cheap complex devices of great
reliability; and something is bound to come of it.
   Vannevar Bush, 1945



----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://www.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to