Flush method is not implemented in CompressedOutputStream
See original GitHub issueHello,
I have noticed that io.javalin.compression.CompressedOutputStream
class does not have flush
method implementation. Could you please advise if it was done intentionally (because flushing will break something) or not?
I am looking into how I can implement SSE compression in Javalin and the absence of this method does not allow flushing data during streaming (so the client receives data only at the end of the response)
Issue Analytics
- State:
- Created 10 months ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Force flush on a GZIPOutputStream in java - Stack Overflow
The problem is, that the flush method of the GZIPOutputStream doesn't work as expected (force compress and send data), instead the Stream waits ......
Read more >flush on outputstream will do nothing - Oracle Communities
No, it only says that in the abstract class OutputStream flush() does nothing. It doesn't say anything about its concrete subclasses.
Read more >java.io.OutputStream.flush java code examples - Tabnine
Flushes this stream. Implementations of this method should ensure that any buffered data is written out. This implementation does nothing. Popular methods of ......
Read more >GZipStream & DeflateStream calling Flush after write or read ...
A call to Dispose first calls Zlib.Deflate(any remaining bytes in buffer, ZFlushCode.Finish) and then writes to the underlying output stream ...
Read more >CompressionAndRMI - Protege Wiki
The flush operation on the GZIPOutputStream is not sufficient to have the desired effect on the client. RMI expects that when it flushes...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure, if I have time I will defiantly try to create a PR for that 😃
There aren’t any plans, but I don’t think anyone is standing in your way if you want to make a PR either 😃