-
Notifications
You must be signed in to change notification settings - Fork 20
All responses truncated to exactly 8192 bytes #26
Comments
Similar, but likely unrelated to: https://bz.apache.org/bugzilla/show_bug.cgi?id=44494 Running Environment: |
Forcing the pre-filtered response to attach an accurate Is it possible that there is a buffer within |
After a few days of tinkering, the only thing that I've been able to confirm for certain is that:
Wrapping the various writers in It would be helpful if someone was able to reproduce the issue in a sterile environment, I don't have enough experience with Java to say where exactly this problem lies or to debug it properly. Is it actually possible to examine the contents of the various OutputStreams at runtime? |
I've got the same issue but i don't have time to investiguate. But after some research i found that : There is a similated issue in GZipCompression, the "content-lenght" header have'nt the right value : jbrotli/jbrotli-servlet/src/main/java/org/meteogroup/jbrotli/servlet/BrotliServletOutputStream.java Line 82 in 4d003fd
could be changed like this :
OR maybe it could be the nginx reverse-proxy : please keep me informed 😀 |
I'm looking into this again and strangely, setting a e.g.
I would say that this might have something to do with What could cause the filter to return less data but still have exactly 8192 characters in the end? I have to think that this bug comes down to an unflushed buffer, but I don't think that the issue is in the ServletFilter anymore, I think the issue is a layer deeper than that within the actual implementation of JBrotli. I can't verify that manually or I would. |
Possibly related to #14
I'm running into an issue where using the provided BrotliFilter with default settings will cause all responses to be truncated to a
Content-Length
of exactly 8192 bytes.If you adjust the parameters, even setting the compression quality to
0
still causes all routes that match that filter to be truncated.I've looked through the jbrotli source and I can't see what could be causing this, but there aren't any headers being applied on my own end and the output is normal when the filter is not in use or isn't applied to a route.
Is there any known reason why this could be happening?
The text was updated successfully, but these errors were encountered: