mirror of
https://github.com/oven-sh/bun
synced 2026-02-17 22:32:06 +00:00
more
This commit is contained in:
@@ -1891,7 +1891,7 @@ class Http2Stream extends Duplex {
|
||||
}
|
||||
markStreamClosed(this);
|
||||
this.rstCode = code;
|
||||
if (this.writableFinished) {
|
||||
if (this.writableFinished || code) {
|
||||
setImmediate(rstNextTick.bind(session, this.#id, code));
|
||||
} else {
|
||||
this.once("finish", rstNextTick.bind(session, this.#id, code));
|
||||
|
||||
@@ -28,6 +28,7 @@ server.listen(0, function() {
|
||||
{ rejectUnauthorized: false }
|
||||
);
|
||||
client_stream = client.request({ ':method': 'POST' });
|
||||
|
||||
client_stream.on('close', common.mustCall(() => {
|
||||
client.close();
|
||||
server.close();
|
||||
|
||||
Reference in New Issue
Block a user