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

Find HttpConnectionProvider in HttpClientConfig (#2468) #2468

Closed

Conversation

yangbongsoo
Copy link

@yangbongsoo yangbongsoo commented Sep 8, 2022

@violetagg . I made new PR.
In #2463 (comment), you recommand the configuration to return the original ConnectionProvider method.

Fixes #2462

@@ -76,7 +76,7 @@ public Map<SocketAddress, Integer> maxConnectionsPerHost() {
final AtomicReference<ConnectionProvider> h2ConnectionProvider = new AtomicReference<>();

HttpConnectionProvider() {
this(null);
this(ConnectionProvider.create("default", 1));
Copy link
Author

Choose a reason for hiding this comment

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

I made new ConnectionProvider.
Because If http1ConnectionProvider and h2ConnectionProvider.get() values are all null,
It's impossible to get original ConnectionProvider

@violetagg
Copy link
Member

violetagg commented Sep 14, 2022

@yangbongsoo What do you think about this approach #2483?

@violetagg
Copy link
Member

This is superseded by #2483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/superseded An issue that has been superseded by another
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use HttpConnectionProvider mutate method
2 participants