diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-12-25 08:58:51 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-25 08:58:51 +0530 |
commit | 60da9d493c97fdfa026d163f80ddc25ee01a6e57 (patch) | |
tree | d97ead9db23f66a5a3be84eccddcf08dd584cc29 /ext/node/polyfills/http.ts | |
parent | 8702894feb480181040152a06e7c3eaf38619629 (diff) |
fix(ext/node): add ClientRequest#setNoDelay (#21694)
Fixes https://github.com/denoland/deno/issues/18316
Diffstat (limited to 'ext/node/polyfills/http.ts')
-rw-r--r-- | ext/node/polyfills/http.ts | 5 |
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 |