Skip to content

Update: Add snappy support on HttpContentDecoder#13312

Merged
normanmaurer merged 4 commits intonetty:4.1from
redcinelli:add_snappy_support_httpcontentdecompressor
Apr 3, 2023
Merged

Update: Add snappy support on HttpContentDecoder#13312
normanmaurer merged 4 commits intonetty:4.1from
redcinelli:add_snappy_support_httpcontentdecompressor

Conversation

@redcinelli
Copy link
Copy Markdown
Contributor

@redcinelli redcinelli commented Mar 30, 2023

Motivation:
I want to allow logstash http input to be able to read snappy compressed data.

Modifications:
To allow the HttpContentDecoder to support snappy it created a new control flow to test for snappy content encoding.

If it is present, we are using a specific snappy decompressor to read the data.

In order to make sure it was working I also included a e2e test on the behaviour of HttpContentDecoder.

Result:
We should be able to send snappy traffic to a server using HttpContentDocder and be ale to uncompress the traffic.

Fixes #13307

Motivation:
I want to allow logstash http input to be able to read snappy compressed
data.

Modifications:
To allow the HttpContentDecoder to support snappy it created a new
control flow to test for snappy content encoding.

If it is present, we are using a specific snappy decompressor to read
the data.

In order to make sure it was working I also included a e2e test on the
behaior of HttpContentDecoder.

Result:
We should be able to send snappy traffic to a server using
HttpContentDocder and be ale to uncompresse the traffic.
Copy link
Copy Markdown
Contributor

@hyperxpro hyperxpro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix checkstyle.

Comment thread codec-http/src/main/java/io/netty/handler/codec/http/HttpContentDecompressor.java Outdated
Comment thread codec-http/src/main/java/io/netty/handler/codec/http/HttpHeaderValues.java Outdated
Comment thread codec-http/src/test/java/io/netty/handler/codec/http/HttpContentDecoderTest.java Outdated
Comment thread codec-http/src/test/java/io/netty/handler/codec/http/HttpContentDecoderTest.java Outdated
normanmaurer and others added 2 commits April 2, 2023 10:18
Co-authored-by: Aayush Atharva <hyperx.pro@outlook.com>
Comment thread codec-http/src/main/java/io/netty/handler/codec/http/HttpContentDecompressor.java Outdated
@normanmaurer normanmaurer added this to the 4.1.91.Final milestone Apr 3, 2023
@normanmaurer
Copy link
Copy Markdown
Member

@redcinelli can you please sign our ICLA: https://netty.io/s/icla ?

@hyperxpro
Copy link
Copy Markdown
Contributor

We also need this for Http2.

@redcinelli
Copy link
Copy Markdown
Contributor Author

@redcinelli can you please sign our ICLA: https://netty.io/s/icla ?

Hi @normanmaurer, I believe I had done it already.
Do I get a confirmation by email ?

I have re-done it anyway just to make sure. 👌

@normanmaurer normanmaurer merged commit cd54019 into netty:4.1 Apr 3, 2023
normanmaurer added a commit that referenced this pull request Apr 3, 2023
Motivation:
I want to allow logstash http input to be able to read snappy compressed
data.

Modifications:
To allow the HttpContentDecoder to support snappy it created a new
control flow to test for snappy content encoding.

If it is present, we are using a specific snappy decompressor to read
the data.

In order to make sure it was working I also included a e2e test on the
behaior of HttpContentDecoder.

Result:
We should be able to send snappy traffic to a server using
HttpContentDocder and be ale to uncompresse the traffic.

Co-authored-by: Aayush Atharva <hyperx.pro@outlook.com>
Co-authored-by: Norman Maurer <norman_maurer@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extend decompression of HttpContentDecompressor.java

3 participants