remove extra flushs

This commit is contained in:
Ciro Spaciari
2024-09-07 07:58:05 -07:00
parent 5ebc12e57e
commit edfde229c7

View File

@@ -1295,7 +1295,6 @@ ServerResponse.prototype._write = function (chunk, encoding, callback) {
ensureReadableStreamController.$call(this, controller => {
controller.write(chunk);
controller.flush().finally(callback);
});
};
@@ -1310,12 +1309,10 @@ ServerResponse.prototype._writev = function (chunks, callback) {
return;
}
ensureReadableStreamController.$call(this, async controller => {
ensureReadableStreamController.$call(this, controller => {
for (const chunk of chunks) {
controller.write(chunk.chunk);
}
controller.flush().finally(callback);
});
};