Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: Add snappy support on HttpContentDecoder #13312

Merged

Conversation

redcinelli
Copy link
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
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.

normanmaurer and others added 2 commits April 2, 2023 10:18
Co-authored-by: Aayush Atharva <hyperx.pro@outlook.com>
@normanmaurer normanmaurer added this to the 4.1.91.Final milestone Apr 3, 2023
@normanmaurer
Copy link
Member

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

@hyperxpro
Copy link
Contributor

We also need this for Http2.

@redcinelli
Copy link
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
12 of 14 checks passed
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