question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flush method is not implemented in CompressedOutputStream

See original GitHub issue

Hello, 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:closed
  • Created 10 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
OptimumOpiumcommented, Dec 2, 2022

Sure, if I have time I will defiantly try to create a PR for that 😃

0reactions
tipsycommented, Dec 2, 2022

If there are no plans to implement a flush method in CompressedOutputStream I, probably, can close the question

There aren’t any plans, but I don’t think anyone is standing in your way if you want to make a PR either 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found