René's URL Explorer Experiment


Title: quic: emit RFC 9114 stream-closure error codes (H3_REQUEST_CANCELLED, H3_REQUEST_INCOMPLETE) · Issue #65509 · nodejs/node · GitHub

Open Graph Title: quic: emit RFC 9114 stream-closure error codes (H3_REQUEST_CANCELLED, H3_REQUEST_INCOMPLETE) · Issue #65509 · nodejs/node

X Title: quic: emit RFC 9114 stream-closure error codes (H3_REQUEST_CANCELLED, H3_REQUEST_INCOMPLETE) · Issue #65509 · nodejs/node

Description: Following #65442, which made rejected request streams reset with H3_REQUEST_REJECTED, two more RFC 9114 stream-closure codes are still not emitted. Filing to agree on direction before implementing — one needs a small API decision. 1. Can...

Open Graph Description: Following #65442, which made rejected request streams reset with H3_REQUEST_REJECTED, two more RFC 9114 stream-closure codes are still not emitted. Filing to agree on direction before implementing ...

X Description: Following #65442, which made rejected request streams reset with H3_REQUEST_REJECTED, two more RFC 9114 stream-closure codes are still not emitted. Filing to agree on direction before implementing ...

Opengraph URL: https://github.com/nodejs/node/issues/65509

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"quic: emit RFC 9114 stream-closure error codes (H3_REQUEST_CANCELLED, H3_REQUEST_INCOMPLETE)","articleBody":"Following #65442, which made rejected request streams reset with `H3_REQUEST_REJECTED`, two more RFC 9114 stream-closure codes are still not emitted. Filing to agree on direction before implementing — one needs a small API decision.\n\n### 1. Cancellation — `H3_REQUEST_CANCELLED` (0x10c)\n\nWhen an endpoint gives up on a request it no longer wants (client aborting a request, or a server abandoning a response after starting it), the stream should be reset as *cancelled*. There are two gaps today:\n\n- **A cancel is two operations, with no single one.** Fully cancelling a bidirectional stream means aborting both halves — `RESET_STREAM` (\"I will not send more\") and `STOP_SENDING` (\"do not send me more\").\n- **The code is wrong.** Both default to `0n` (`H3_NO_ERROR`), so a cancel currently signals *\"no error\"* to the peer.\n\n```js\n// Today: two calls, and both default to H3_NO_ERROR (0) — the peer is told \"no error\"\nstream.resetStream();\nstream.stopSending();\n```\n\n[RFC 9114 §4.1.1](https://www.rfc-editor.org/rfc/rfc9114.html#section-4.1.1): *\"Client SHOULD use the error code H3_REQUEST_CANCELLED to cancel requests\"*, and a server abandoning a response after partial processing *\"SHOULD abort its response stream with the error code H3_REQUEST_CANCELLED.\"* node neither defaults to `0x10c` nor exposes it.\n\n**Proposal:** a `stream.cancel([reason])` method that resets both halves with `H3_REQUEST_CANCELLED`. Role-agnostic (client-cancel and server-abandon use the same code); the existing `resetStream()`/`stopSending()` stay as low-level primitives.\n\n```js\n// Proposed: one call, resets both halves with H3_REQUEST_CANCELLED (0x10c)\nstream.cancel();\n```\n\nThis keeps the numeric code out of consumer code (e.g. a future h3 client in undici, #5471), matching how `node:http2` offers `stream.close(code)` and how `fetch`/`AbortController` sits a layer above.\n\n*Alternative considered:* expose a named `H3_REQUEST_CANCELLED` constant for the existing resets. Still two calls, and it pushes the code choice onto every caller:\n\n```js\n// Alternative: still two calls, caller supplies the code via an exposed constant\nstream.resetStream(\u003cQUIC_CONSTANTS>.H3_REQUEST_CANCELLED);\nstream.stopSending(\u003cQUIC_CONSTANTS>.H3_REQUEST_CANCELLED);\n```\n\n### 2. Incomplete request — `H3_REQUEST_INCOMPLETE` (0x10d)\n\n[RFC 9114 §4.1](https://www.rfc-editor.org/rfc/rfc9114.html#section-4.1): *\"If a client-initiated stream terminates without enough of the HTTP message to provide a complete response, the server SHOULD abort its response stream with the error code H3_REQUEST_INCOMPLETE.\"*\n\nThis needs no API — the HTTP/3 layer can emit it when a request stream closes before a complete message. Today the teardown uses a generic code (`H3_NO_ERROR` or `H3_INTERNAL_ERROR`), so the client can't distinguish \"the server errored\" from \"my request was incomplete.\" Emitting `0x10d` puts the signal where it belongs.","author":{"url":"https://github.com/trivenay","@type":"Person","name":"trivenay"},"datePublished":"2026-08-23T19:49:30Z","url":"https://github.com/nodejs/node/issues/65509"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6c1f08cc-e4f3-e39a-a1ca-46bb865f481d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA162:5463F:6840BB:8D1802:6AED2697
html-safe-noncef314fc7d68479080da28070c5d0ac21fde3cfa0a60724bbe70a774d523ee6766
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTYyOjU0NjNGOjY4NDBCQjo4RDE4MDI6NkFFRDI2OTciLCJ2aXNpdG9yX2lkIjoiODY3MTc1NDEzNzM5NDU1NDUxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfec8c8c476418b2309ec7646613e045a508b8e65c2eecd158ab4e0811f9d0176
hovercard-subject-tagissue:5228769116
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/65509/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0306b27aeee03114fc602dd1512dc3b8edeb642f8b081115537d93885855bafb/nodejs/node/issues/65509
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0306b27aeee03114fc602dd1512dc3b8edeb642f8b081115537d93885855bafb/nodejs/node/issues/65509
og:image:altFollowing #65442, which made rejected request streams reset with H3_REQUEST_REJECTED, two more RFC 9114 stream-closure codes are still not emitted. Filing to agree on direction before implementing ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametrivenay
hostnamegithub.com
expected-hostnamegithub.com
None9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release98b41fa4b5635ceb45a4c54320fced73817ff290
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/65509#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F65509
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F65509
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/65509
Reloadhttps://github.com/nodejs/node/issues/65509
Reloadhttps://github.com/nodejs/node/issues/65509
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues657 (657)https://github.com/nodejs/node/issues
Pull requests666 (666)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65509
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65509
quic: emit RFC 9114 stream-closure error codes (H3_REQUEST_CANCELLED, H3_REQUEST_INCOMPLETE)https://github.com/nodejs/node/issues/65509#top
https://github.com/trivenay
trivenayhttps://github.com/trivenay
on Aug 23, 2026https://github.com/nodejs/node/issues/65509#issue-5228769116
#65442https://github.com/nodejs/node/pull/65442
RFC 9114 §4.1.1https://www.rfc-editor.org/rfc/rfc9114.html#section-4.1.1
#5471https://github.com/nodejs/node/pull/5471
RFC 9114 §4.1https://www.rfc-editor.org/rfc/rfc9114.html#section-4.1
https://github.com/trivenay
trivenayhttps://github.com/trivenay
on Aug 23, 2026https://github.com/nodejs/node/issues/65509#issuecomment-5388122790
@jasnellhttps://github.com/jasnell
https://github.com/trivenay
trivenayhttps://github.com/trivenay
on Sep 13, 2026https://github.com/nodejs/node/issues/65509#issuecomment-5649553504
#66007https://github.com/nodejs/node/pull/66007
jasnellhttps://github.com/jasnell
QUIC Teamhttps://github.com/orgs/nodejs/projects/17
on Sep 13, 2026https://github.com/nodejs/node/issues/65509#event-31039700771
jasnellhttps://github.com/jasnell
QUIC Teamhttps://github.com/orgs/nodejs/projects/17
on Sep 13, 2026https://github.com/nodejs/node/issues/65509
trivenayhttps://github.com/trivenay
on Sep 14, 2026https://github.com/nodejs/node/issues/65509#event-31089030617
quic: add stream.cancel() sending H3_REQUEST_CANCELLEDhttps://github.com/trivenay/node/commit/47e84e4e75f2d4a92abc97a64c1d3d001188a3ff
47e84e4https://github.com/trivenay/node/commit/47e84e4e75f2d4a92abc97a64c1d3d001188a3ff
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/65509
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65509
QUIC Teamhttps://github.com/orgs/nodejs/projects/17
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.