mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
test
This commit is contained in:
@@ -2732,19 +2732,12 @@ class ServerHttp2Session extends Http2Session {
|
||||
|
||||
#onClose() {
|
||||
const parser = this.#parser;
|
||||
const err = this.connecting ? $ERR_SOCKET_CLOSED() : null;
|
||||
if (parser) {
|
||||
for (const stream of parser.getAllStreams()) {
|
||||
if (stream) {
|
||||
stream.close(NGHTTP2_CANCEL);
|
||||
}
|
||||
}
|
||||
parser.emitAbortToAllStreams();
|
||||
parser.detach();
|
||||
this.#parser = null;
|
||||
}
|
||||
|
||||
this.close();
|
||||
this.destroy(err, NGHTTP2_NO_ERROR);
|
||||
}
|
||||
|
||||
#onError(error: Error) {
|
||||
|
||||
Reference in New Issue
Block a user