Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Truncated result #14

Open
ben-manes opened this issue Apr 13, 2017 · 2 comments
Open

Truncated result #14

ben-manes opened this issue Apr 13, 2017 · 2 comments

Comments

@ben-manes
Copy link

When returning a large json, it appears that the response is truncated when Brotli is used (but works fine with gzip). The integration isn't doing anything fancy - its RestEasy (Jax-rs), Guice, and Jackson. Brotli was added as,

filter("/*").through(BrotliServletFilter.class);
bind(BrotliServletFilter.class).asEagerSingleton();

For small payloads it works perfectly, but for a large one it returns back content-length:21949 which is probably incorrect.

@ben-manes
Copy link
Author

It seems to be forced by Jetty in org.eclipse.jetty.http.HttpGenerator.putContentLength(ByteBuffer, long)

Though I'm not sure why.

@nitram509
Copy link
Contributor

Hi Ben,

thank you for this feedback.
May I ask you to provide a shot Github ghist example code, where I can test this scenario?

Thanks in advance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants