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

Issue 5416: Transfer configuration to connection providers. #5682

Closed
wants to merge 2 commits into from

Conversation

Tomas-Kraus
Copy link
Member

Signed-off-by: Tomáš Kraus tomas.kraus@oracle.com

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 14, 2022
@Tomas-Kraus
Copy link
Member Author

Tomas-Kraus commented Dec 14, 2022

This is actually still work in progress. I just need some feedback from @tomas-langer

nima/http2/webserver/src/test/resources/application.yaml Outdated Show resolved Hide resolved

// Builds LoomServer instance including connectionProviders list.
WebServer.Builder wsBuilder = WebServer.builder()
.config(config.get("server"));
Copy link
Member

Choose a reason for hiding this comment

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

If you want to check that the configuration was propagated, you can have static methods on your custom connection provider, build the server, and then check that your connection provider obtained the correct setup.

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, yes, that's 1st part of the test. But it's not enough.
I would also like to know that those specific 2 values described in the issue got propagated into local Http2Settings instance of the Http2Connection.

.config(config.get("server"));

// Call wsBuilder.connectionProviders() trough reflection
Method connectionProviders = WebServer.Builder.class.getDeclaredMethod("connectionProviders",null);
Copy link
Member

Choose a reason for hiding this comment

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

This is very hard to maintain, as it escapes refactoring.

Copy link
Member Author

Choose a reason for hiding this comment

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

Unfortunately onnectionProviders() is not in the same package here. Theoretically I can create accessor in in tests of WebServer module where there is no problem to have the same package in the tests.

@Tomas-Kraus Tomas-Kraus linked an issue Dec 16, 2022 that may be closed by this pull request
@Tomas-Kraus Tomas-Kraus force-pushed the issue-5416 branch 2 times, most recently from dd41723 to 17d98ab Compare December 20, 2022 15:16
@Tomas-Kraus Tomas-Kraus self-assigned this Dec 20, 2022
@Tomas-Kraus Tomas-Kraus marked this pull request as ready for review December 21, 2022 12:03
@Tomas-Kraus
Copy link
Member Author

All builds/tests are finally green. Let's do final review & merge.

@Tomas-Kraus
Copy link
Member Author

Rebase to check whether copyrights are ok on 2023.

Signed-off-by: Tomáš Kraus <tomas.kraus@oracle.com>
Signed-off-by: Tomáš Kraus <tomas.kraus@oracle.com>
@tomas-langer
Copy link
Member

Closing this PR, replaced by #5883

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Nima: HTTP/2 configuration
2 participants