René's URL Explorer Experiment


Title: http2: large queued request body prevents receiving an early response · Issue #66739 · nodejs/node · GitHub

Open Graph Title: http2: large queued request body prevents receiving an early response · Issue #66739 · nodejs/node

X Title: http2: large queued request body prevents receiving an early response · Issue #66739 · nodejs/node

Description: Version v26.10.0 Platform Darwin miki.local 25.6.0 Darwin Kernel Version 25.6.0: Sat Jul 11 15:27:04 PDT 2026; root:xnu-12377.161.13~4/RELEASE_ARM64_T6050 arm64 Subsystem http2 What steps will reproduce the bug? Save the following code i...

Open Graph Description: Version v26.10.0 Platform Darwin miki.local 25.6.0 Darwin Kernel Version 25.6.0: Sat Jul 11 15:27:04 PDT 2026; root:xnu-12377.161.13~4/RELEASE_ARM64_T6050 arm64 Subsystem http2 What steps will repr...

X Description: Version v26.10.0 Platform Darwin miki.local 25.6.0 Darwin Kernel Version 25.6.0: Sat Jul 11 15:27:04 PDT 2026; root:xnu-12377.161.13~4/RELEASE_ARM64_T6050 arm64 Subsystem http2 What steps will repr...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"http2: large queued request body prevents receiving an early response","articleBody":"### Version\n\nv26.10.0\n\n### Platform\n\n```text\nDarwin miki.local 25.6.0 Darwin Kernel Version 25.6.0: Sat Jul 11 15:27:04 PDT 2026; root:xnu-12377.161.13~4/RELEASE_ARM64_T6050 arm64\n```\n\n### Subsystem\n\nhttp2\n\n### What steps will reproduce the bug?\n\nSave the following code into a file and run it. For the 16MB request with the default session limit, node reports `ERR_HTTP2_STREAM_ERROR: Stream closed with error code NGHTTP2_ENHANCE_YOUR_CALM` rather than the 413.\n\n```js\n// A client that queues a large request body cannot read an early response.\n// Cleartext HTTP/2 (h2c), no dependencies: `node repro.mjs`.\nimport http2 from 'node:http2';\n\nconst server = http2.createServer();\nconst sessions = new Set();\nserver.on('session', (session) => sessions.add(session));\nserver.on('stream', (stream) => {\n  stream.on('error', () => {}); // the client may reset the stream\n  // Reject without reading the request body, as a server does for a 401 or 413.\n  stream.respond({ ':status': 413 });\n  stream.end('payload too large');\n});\nawait new Promise((resolve) => server.listen(0, resolve));\nconst origin = `http://localhost:${server.address().port}`;\n\nconst post = (bodyBytes, sessionOptions = {}) =>\n  new Promise((resolve) => {\n    const session = http2.connect(origin, sessionOptions);\n    const req = session.request({ ':method': 'POST', ':path': '/' });\n    req.on('response', (headers) => resolve(`status ${headers[':status']}`));\n    req.on('error', (err) => resolve(`${err.code}: ${err.message}`));\n    req.on('close', () => session.destroy());\n    req.end(Buffer.alloc(bodyBytes)); // the whole body in one write\n  });\n\nconst MiB = 1024 * 1024;\nconsole.log(`node ${process.version}`);\nconsole.log(' 8 MiB body:                   ', await post(8 * MiB));\nconsole.log('16 MiB body:                   ', await post(16 * MiB));\nconsole.log('16 MiB, maxSessionMemory 64 MB:', await post(16 * MiB, { maxSessionMemory: 64 }));\nfor (const session of sessions) session.destroy();\nserver.close();\n```\n\n### How often does it reproduce? Is there a required condition?\n\nTo reproduce, more than `maxSessionMemory` worth of request-body data must be queued when the response arrives.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nI'd expect consistent propagation of the server's 413 responses\n\n### What do you see instead?\n\nOpaque stream error (`ERR_HTTP2_STREAM_ERROR: Stream closed with error code NGHTTP2_ENHANCE_YOUR_CALM`) and no response\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/CoffeeFlux","@type":"Person","name":"CoffeeFlux"},"datePublished":"2026-10-14T19:32:31Z","url":"https://github.com/nodejs/node/issues/66739"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2ca799a6-5cfd-417d-a735-2db028c0d0ea
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAF68:21705E:EB5894:1450526:6AFBF54F
html-safe-nonced7b38e5d8b8e430743c38a4e20bc836385959e95b2e7968f8209a995bd2a8cab
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjY4OjIxNzA1RTpFQjU4OTQ6MTQ1MDUyNjo2QUZCRjU0RiIsInZpc2l0b3JfaWQiOiIxOTM2MjEzNzQ4OTQzMTU2NTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac49858b3dbc5824d6f1ade772f20308ca73ffdf11fb4684e8b2b19008aee7dd40
hovercard-subject-tagissue:5854310259
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/66739/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6404b8f53c3d45420ba571b91a832787463fe03d001bf58b8a29e001c0a20249/nodejs/node/issues/66739
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6404b8f53c3d45420ba571b91a832787463fe03d001bf58b8a29e001c0a20249/nodejs/node/issues/66739
og:image:altVersion v26.10.0 Platform Darwin miki.local 25.6.0 Darwin Kernel Version 25.6.0: Sat Jul 11 15:27:04 PDT 2026; root:xnu-12377.161.13~4/RELEASE_ARM64_T6050 arm64 Subsystem http2 What steps will repr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameCoffeeFlux
hostnamegithub.com
expected-hostnamegithub.com
Nonefa74413a1d84dac536fcca0740780bcbd3207bafec0e51873b73ff8e8cca032f
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
releaseb3b5633a74535d9c23385512d534c66c8fde1907
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/66739#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F66739
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%2F66739
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/66739
Reloadhttps://github.com/nodejs/node/issues/66739
Reloadhttps://github.com/nodejs/node/issues/66739
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues644 (644)https://github.com/nodejs/node/issues
Pull requests679 (679)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/66739
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/66739
#67114https://github.com/nodejs/node/pull/67114
http2: large queued request body prevents receiving an early responsehttps://github.com/nodejs/node/issues/66739#top
#67114https://github.com/nodejs/node/pull/67114
http2Issues and PRs related to the http2 subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22http2%22
https://github.com/CoffeeFlux
CoffeeFluxhttps://github.com/CoffeeFlux
on Oct 14, 2026https://github.com/nodejs/node/issues/66739#issue-5854310259
https://github.com/inoway46
inoway46https://github.com/inoway46
on Oct 15, 2026https://github.com/nodejs/node/issues/66739#issuecomment-6193237321
38aa1f3https://github.com/nodejs/node/commit/38aa1f38819029593ea0c5e0fe6658f1dabd6683
AddHeader() rejects response headershttps://github.com/nodejs/node/blob/a5af6440be1/src/node_http2.cc#L2771-L2774
deferred during receive processinghttps://github.com/nodejs/node/blob/a5af6440be1/src/node_http2.cc#L2001-L2004
queues INTERNAL_ERROR for the callback failurehttps://github.com/nodejs/node/blob/a5af6440be1/deps/nghttp2/lib/nghttp2_session.c#L6452-L6465
inoway46https://github.com/inoway46
http2Issues and PRs related to the http2 subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22http2%22
on Oct 15, 2026https://github.com/nodejs/node/issues/66739#event-33337494380
https://github.com/GBra-4-669
GBra-4-669https://github.com/GBra-4-669
on Oct 18, 2026https://github.com/nodejs/node/issues/66739#issuecomment-6249867871
#17967https://github.com/nodejs/node/pull/17967
https://github.com/pimterry
pimterryhttps://github.com/pimterry
on Oct 22, 2026https://github.com/nodejs/node/issues/66739#issuecomment-6338435875
@GBra-4-669https://github.com/GBra-4-669
inoway46https://github.com/inoway46
on Oct 29, 2026https://github.com/nodejs/node/issues/66739#event-34608577950
http2: release queued data memory on stream cancellationhttps://github.com/inoway46/node/commit/15bcc851f5f6a5980c341b8fa4010f02bd13892b
15bcc85https://github.com/inoway46/node/commit/15bcc851f5f6a5980c341b8fa4010f02bd13892b
https://github.com/inoway46
inoway46https://github.com/inoway46
on Oct 29, 2026https://github.com/nodejs/node/issues/66739#issuecomment-6503027914
the guidancehttps://github.com/nodejs/node/issues/66739#issuecomment-6338435875
#67114https://github.com/nodejs/node/pull/67114
nodejs-github-bothttps://github.com/nodejs-github-bot
on Oct 31, 2026https://github.com/nodejs/node/issues/66739#event-34783122762
http2: release queued data memory on stream cancellationhttps://github.com/nodejs/node/commit/80a74e1813ddbb5b0bd507e1e09bc02790c452a2
80a74e1https://github.com/nodejs/node/commit/80a74e1813ddbb5b0bd507e1e09bc02790c452a2
inoway46https://github.com/inoway46
on Oct 31, 2026https://github.com/nodejs/node/issues/66739#event-34785951338
http2: exclude queued data from final response memory checkshttps://github.com/inoway46/node/commit/0edc48e131b9a19458872334909eae64b48fe71c
0edc48ehttps://github.com/inoway46/node/commit/0edc48e131b9a19458872334909eae64b48fe71c
http2: exclude queued data from final response memory checkshttps://github.com/inoway46/node/commit/c90f4ac85b0d72268050bca84ebedb707910425d
c90f4achttps://github.com/inoway46/node/commit/c90f4ac85b0d72268050bca84ebedb707910425d
http2: exclude queued data from response memory checkshttps://github.com/inoway46/node/commit/0f870536342f21952f0484a29f5de6c2eb2cf91a
0f87053https://github.com/inoway46/node/commit/0f870536342f21952f0484a29f5de6c2eb2cf91a
http2: exclude queued data from response memory checkshttps://github.com/inoway46/node/commit/151b1b85c089cb3cee6a3bbf71a1fc1cc0f67a78
151b1b8https://github.com/inoway46/node/commit/151b1b85c089cb3cee6a3bbf71a1fc1cc0f67a78
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#67114https://github.com/nodejs/node/pull/67114
on Nov 4, 2026https://github.com/nodejs/node/issues/66739#event-35157055476
araujoguihttps://github.com/araujogui
on Nov 4, 2026https://github.com/nodejs/node/issues/66739#event-35165215094
http2: exclude queued data from response memory checkshttps://github.com/araujogui/node/commit/20daf9a4c73e32950d17ca837ae668f03184361b
20daf9ahttps://github.com/araujogui/node/commit/20daf9a4c73e32950d17ca837ae668f03184361b
aduh95https://github.com/aduh95
on Nov 11, 2026https://github.com/nodejs/node/issues/66739#event-35823362340
http2: release queued data memory on stream cancellationhttps://github.com/nodejs/node/commit/ed688a4662b60f50d84cb1ab332e1389a05572c6
ed688a4https://github.com/nodejs/node/commit/ed688a4662b60f50d84cb1ab332e1389a05572c6
http2: exclude queued data from response memory checkshttps://github.com/nodejs/node/commit/8d45d5b69eb2d5d65b8f38b168e997bb3454b381
8d45d5bhttps://github.com/nodejs/node/commit/8d45d5b69eb2d5d65b8f38b168e997bb3454b381
http2: release queued data memory on stream cancellationhttps://github.com/nodejs/node/commit/19957e35219bde1af58dd8ec9ac1e675cbd25ba8
19957e3https://github.com/nodejs/node/commit/19957e35219bde1af58dd8ec9ac1e675cbd25ba8
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/66739
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/66739
http2Issues and PRs related to the http2 subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22http2%22
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.