Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node:http2 Http2Stream.close does not send RST_STREAM #26027

Open
szmarczak opened this issue Oct 4, 2024 · 0 comments
Open

node:http2 Http2Stream.close does not send RST_STREAM #26027

szmarczak opened this issue Oct 4, 2024 · 0 comments
Labels
bug Something isn't working correctly node compat

Comments

@szmarczak
Copy link

close(_code: number, _callback: () => void) {
this.#closed = true;
this.emit("close");
}

deno 2.0.0-rc.10

let server = (await import('node:http2')).createServer(); server.on('stream', s => s.close(1)); server.listen(8888);

https://nodejs.org/api/http2.html#http2streamclosecode-callback

Closes the Http2Stream instance by sending an RST_STREAM frame to the connected HTTP/2 peer.

@marvinhagemeister marvinhagemeister added bug Something isn't working correctly node compat labels Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly node compat
Projects
None yet
Development

No branches or pull requests

2 participants