mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
perf(ext/node): improve node:http createServer performance (#29069)
This commit is contained in:
parent
229228ae0d
commit
1df61020f0
1 changed files with 5 additions and 1 deletions
|
@ -1499,7 +1499,11 @@ export const ServerResponse = function (
|
|||
this._readable = readable;
|
||||
this._resolve = resolve;
|
||||
this.socket = socket;
|
||||
this.socket?.on("close", () => this.end());
|
||||
this.socket?.on("close", () => {
|
||||
if (!this.finished) {
|
||||
this.end();
|
||||
}
|
||||
});
|
||||
this._header = "";
|
||||
} as unknown as ServerResponseStatic;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue