summaryrefslogtreecommitdiff
path: root/ext/node/polyfills
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills')
-rw-r--r--ext/node/polyfills/http.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts
index d45854162..e49f71702 100644
--- a/ext/node/polyfills/http.ts
+++ b/ext/node/polyfills/http.ts
@@ -892,6 +892,11 @@ class ClientRequest extends OutgoingMessage {
}
headers.push([key, value]);
}
+
+ // Once a socket is assigned to this request and is connected socket.setNoDelay() will be called.
+ setNoDelay() {
+ this.socket?.setNoDelay?.();
+ }
}
// isCookieField performs a case-insensitive comparison of a provided string