-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MultiAddressUrl client fails to send http request after https request (…
…#962) Motivation: If `MultiAddressUrl` was used to send an HTTPS request over secure connection, all other requests to new non-secure servers will fail with `DecoderException`. It happens because we incorrectly copy the `HttpClientBuilder` template. We did not create a new instance of `TcpClientConfig` and `HttpConfig`. Modifications: - Add copy ctor for `HttpConfig`; - Use copy ctors for `TcpClientConfig` and `HttpConfig` in `HttpClientConfig`; - Add test to verify that `MultiAddressUrl` client can connect to insecure server after connecting to a secure server and vice versa; Result: `HttpClientConfig` makes a full copy of `TcpClientConfig` and `HttpConfig` that prevents the `HttpClientBuilder` template from modifications. `MultiAddressUrl` client correctly copies the builder template without internal state modifications.
- Loading branch information
1 parent
cc466dc
commit 8e4f570
Showing
3 changed files
with
43 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters