Skip to content

http2: add signal to compat request - #67774

Open
inoway46 wants to merge 1 commit into
nodejs:mainfrom
inoway46:http2-compat-request-signal
Open

inoway46 wants to merge 1 commit into
nodejs:mainfrom
inoway46:http2-compat-request-signal

Conversation

@inoway46

@inoway46 inoway46 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

This adds request.signal to Http2ServerRequest, matching message.signal in HTTP/1. The signal follows the stream, not the socket: it is aborted when the stream closes before the response has been sent completely.

Refs: #62541
Refs: #64392

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/http2
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added http2 Issues and PRs related to the http2 subsystem. needs-ci PRs that need a full CI run. labels Nov 25, 2026
@inoway46
inoway46 force-pushed the http2-compat-request-signal branch 3 times, most recently from 5eb5673 to 02e8dbf Compare November 25, 2026 13:26
@inoway46
inoway46 marked this pull request as ready for review November 25, 2026 13:54
Add `request.signal` to `Http2ServerRequest`, matching
`message.signal` in HTTP/1. The signal follows the stream, not the
socket: it is aborted when the stream closes before the response has
been sent completely.

Refs: nodejs#62541
Refs: nodejs#64392
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
Assisted-by: Claude Code
@inoway46
inoway46 force-pushed the http2-compat-request-signal branch from 02e8dbf to 6077aa1 Compare November 25, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

http2 Issues and PRs related to the http2 subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants