Skip to content

Commit

Permalink
fix: set nodelay correctly to handle when a tls feature is enabled bu…
Browse files Browse the repository at this point in the history
…t connection is to an http server (#2062)
  • Loading branch information
abls authored Dec 8, 2023
1 parent c09c5e6 commit 1485ce6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ impl Connector {
{
http.set_local_address(local_addr.into());
http.set_nodelay(nodelay);

Connector {
inner: Inner::Http(http),
verbose: verbose::OFF,
Expand Down Expand Up @@ -109,6 +110,7 @@ impl Connector {
T: Into<Option<IpAddr>>,
{
http.set_local_address(local_addr.into());
http.set_nodelay(nodelay);
http.enforce_http(false);

Connector {
Expand Down Expand Up @@ -136,6 +138,7 @@ impl Connector {
T: Into<Option<IpAddr>>,
{
http.set_local_address(local_addr.into());
http.set_nodelay(nodelay);
http.enforce_http(false);

let (tls, tls_proxy) = if proxies.is_empty() {
Expand Down

0 comments on commit 1485ce6

Please sign in to comment.