ChunkedOutputStream and flushing

2008-04-02 Thread Sebastiaan van Erk
Hi, I have a question on the chunked output stream: one of the nice things about chunked encoding is that you can send your data in little parts. However, flush() on ChunkedOutputStream does not flush the buffer: /** * Flushes the underlying stream, but leaves the internal buffer

Re: ChunkedOutputStream and flushing

2008-04-02 Thread Oleg Kalnichevski
On Wed, 2008-04-02 at 21:55 +0200, Sebastiaan van Erk wrote: Hi, I have a question on the chunked output stream: one of the nice things about chunked encoding is that you can send your data in little parts. However, flush() on ChunkedOutputStream does not flush the buffer: /**

Re: ChunkedOutputStream and flushing

2008-04-02 Thread Sebastiaan van Erk
Ok, thanks for the reply. https://issues.apache.org/jira/browse/HTTPCORE-157 I have a workaround (simply subclass ChunkedOutputStream and overwrite flush to call flushCache() followed by super.flush()), and subclassing the EntitySerializer to use it for chunked encoding. Then I create