Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions kube-client/src/client/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ impl TryFrom<Config> for ClientBuilder<GenericService> {
fn try_from(config: Config) -> Result<Self> {
let mut connector = HttpConnector::new();
connector.enforce_http(false);
// Requests over this connection are small and each one waits for its response, which is
// the pattern Nagle's algorithm delays. It is especially costly for long-lived streams
// carried over the connection, such as port-forwards, where a request/response protocol
// running inside the stream stalls on delayed ACKs.
connector.set_nodelay(true);

#[cfg(all(feature = "aws-lc-rs", feature = "rustls-tls"))]
{
Expand Down