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.

io.netty.handler.codec.http.HttpContentCompressor need compress threshold

See original GitHub issue

Expected behavior

the response body is compressed, when the response body exceeds the threshold

Actual behavior

no threshold can be set

Steps to reproduce

Minimal yet complete reproducer code (or URL to code)

Netty version

4.1.16.Final

JVM version (e.g. java -version)

java 1.8

OS version (e.g. uname -a)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:14 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
normanmaurercommented, Jan 31, 2018

@hepin1989 @pli2014 I think we should not suggest anything as what makes sense highly depends… for example even if you use smaller buffers as the mtu size it may make sense if you do a gathering write.

1reaction
teaeycommented, Jan 31, 2018

Let users decide how to use it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HttpContentCompressor (Netty API Reference (4.1.85.Final))
Compresses an HttpMessage and an HttpContent in gzip or deflate encoding while respecting the ... Methods inherited from class io.netty.handler.codec.http.
Read more >
netty/HttpContentCompressor.java at 4.1 - GitHub
Unless required by applicable law or agreed to in writing, software ... import io.netty.handler.codec.compression.Brotli; ... body exceeds the threshold.
Read more >
io.netty.handler.codec.http.HttpContentCompressor.write java ...
This is needed as we use the // ChunkedWriteHandler to send files when compression is enabled. ByteBuf buff = (ByteBuf) msg; if (buff....
Read more >
io.netty.handler.codec.compression.DecompressionException
The way I'm testing the http compression is wrong. Below code works fine - try(CloseableHttpClient httpclient = HttpClients.
Read more >
io.netty.handler.codec.http.HttpContentCompressor - Netty 4.1.72 ...
本页提供 io.netty.handler.codec.http.HttpContentCompressor 源码的在线查看和学习,来自 Netty 4.1.72.Final 源码 - 即时通讯网(52im.net)
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