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

Bump netty version to use ALPN support needed for JDK8u282. #662

Merged
merged 3 commits into from
Aug 3, 2021

Conversation

vivdesh
Copy link
Contributor

@vivdesh vivdesh commented Jul 30, 2021

With JDK8u282, the ALPN APIs are merged with JDK itself and the ALPN jar is not required. The support for this is added in the netty. Without this newer netty, we get "Unable to wrap SSLEngine of type sun.security.ssl.SSLEngineImpl" runtime error. So this PR updates the netty to avoid this error.

@vivdesh
Copy link
Contributor Author

vivdesh commented Jul 30, 2021

@nizarm @zizhong Could you please review this?

@zizhong
Copy link

zizhong commented Aug 2, 2021

@vivdesh Is there any test done with this change? If possible, you can create a hotfix version of the container and test it with some services.

@@ -261,7 +261,7 @@ public void testMaxHeaderSize() throws InterruptedException, IOException, Timeou
{
testHeaderSize(TEST_MAX_HEADER_SIZE - 1, RESPONSE_OK);

testHeaderSize(TEST_MAX_HEADER_SIZE, RESPONSE_OK);
testHeaderSize(TEST_MAX_HEADER_SIZE, TOO_LARGE);
Copy link

Choose a reason for hiding this comment

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

@vivdesh Hi, could you explain why we need to change this test?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mostly strict parsing of the http header causing this test to fail. netty/netty#10058.
Please let me know where we can change the code according to this?

Copy link

Choose a reason for hiding this comment

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

@vivdesh Thanks for the additional information. If the original test failed because our header generator doesn't follow strictly the HTTP RFC, we probably better fix it.

Copy link

Choose a reason for hiding this comment

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

Actually, there is already a fix from https://github.com/linkedin/rest.li/pull/595/files#diff-bd070627be0acf661a65543c18644309364d2aaf26967596cfdce517c07a6a12R232 by @tjni
Looking more, this change appears to be a subset of #595 which also introducing a newer version of Netty. It makes sense to me to review and merge that commit instead.

@vivdesh
Copy link
Contributor Author

vivdesh commented Aug 2, 2021

@vivdesh Is there any test done with this change? If possible, you can create a hotfix version of the container and test it with some services.

@zizhong We have some MPs with this netty version in external dependency and using JDK8u282.

@zizhong zizhong merged commit 275f4d6 into linkedin:master Aug 3, 2021
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.

None yet

2 participants