Title: https: pipelined request during a response drain fails with HPE_PAUSED · Issue #67455 · nodejs/node · GitHub
Open Graph Title: https: pipelined request during a response drain fails with HPE_PAUSED · Issue #67455 · nodejs/node
X Title: https: pipelined request during a response drain fails with HPE_PAUSED · Issue #67455 · nodejs/node
Description: Version v26.13.1 Platform Darwin foo.local 27.2.0 Darwin Kernel Version 27.2.0: Wed Oct 14 23:44:56 PDT 2026; root:xnu-13432.41.4~25/RELEASE_ARM64_T6041 arm64 Subsystem http, tls What steps will reproduce the bug? $ openssl req -x509 -ne...
Open Graph Description: Version v26.13.1 Platform Darwin foo.local 27.2.0 Darwin Kernel Version 27.2.0: Wed Oct 14 23:44:56 PDT 2026; root:xnu-13432.41.4~25/RELEASE_ARM64_T6041 arm64 Subsystem http, tls What steps will re...
X Description: Version v26.13.1 Platform Darwin foo.local 27.2.0 Darwin Kernel Version 27.2.0: Wed Oct 14 23:44:56 PDT 2026; root:xnu-13432.41.4~25/RELEASE_ARM64_T6041 arm64 Subsystem http, tls What steps will re...
Opengraph URL: https://github.com/nodejs/node/issues/67455
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"https: pipelined request during a response drain fails with HPE_PAUSED","articleBody":"### Version\n\nv26.13.1\n\n### Platform\n\n```text\nDarwin foo.local 27.2.0 Darwin Kernel Version 27.2.0: Wed Oct 14 23:44:56 PDT 2026; root:xnu-13432.41.4~25/RELEASE_ARM64_T6041 arm64\n```\n\n### Subsystem\n\nhttp, tls\n\n### What steps will reproduce the bug?\n\n```shellsession\n$ openssl req -x509 -newkey rsa:2048 -nodes -keyout key.pem -out cert.pem -days 1 -subj /CN=localhost\n$ node repro.js\n```\n\n```ts\nconst fs = require('fs');\nconst https = require('https');\nconst tls = require('tls');\n\nconst server = https.createServer({\n key: fs.readFileSync('key.pem'),\n cert: fs.readFileSync('cert.pem'),\n}, (req, res) => {\n if (req.method === 'GET') {\n // Sends a response too large to flush at once, so the socket must drain.\n // While it drains, the server pauses reading and parsing to apply\n // backpressure to pipelined requests.\n res.end(Buffer.alloc(1e7));\n } else {\n // Reaching the end of the POST body means it was parsed after the drain.\n req.resume().on('end', () => process.exit(console.log('ok')));\n }\n});\n\n// On the bug, the paused parser rejects the POST body and the server destroys\n// the connection.\nserver.on('clientError', (err) => process.exit(console.log(err.code)));\n\nserver.listen(0, () => {\n const client = tls.connect({ port: server.address().port, rejectUnauthorized: false });\n client.write('GET / HTTP/1.1\\r\\nHost: x\\r\\n\\r\\n');\n\n // Pipelines a POST once the GET response starts, while it is still draining.\n // The POST headers pause the server, but its 100 KB body spans several TLS\n // records that can arrive in one TCP read. TLS keeps delivering those\n // records after the pause, and they hit the paused parser.\n client.once('data', () => {\n client.write(`POST / HTTP/1.1\\r\\nHost: x\\r\\nContent-Length: 100000\\r\\n\\r\\n${'x'.repeat(1e5)}`);\n });\n});\n\n```\n\n### How often does it reproduce? Is there a required condition?\n\nThe script above reproduces the failure every time.\n\n### What is the expected behavior? Why is that the expected behavior?\n\n`ok`. Plain HTTP waits for the first response to drain, then reads the POST.\n\n### What do you see instead?\n\n`HPE_PAUSED`, and the server destroys the connection.\n\n### Additional information\n\nPausing a TLS socket stops TCP reads, but `TLSWrap` still delivers records it has already decrypted. Those bytes reach the paused parser, which fails with `HPE_PAUSED`.","author":{"url":"https://github.com/ajeetdsouza","@type":"Person","name":"ajeetdsouza"},"datePublished":"2026-11-13T13:32:50Z","url":"https://github.com/nodejs/node/issues/67455"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ea959123-54cd-2261-b140-18421ddc408a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81D8:2679E9:2A1502E:382E28D:6B01C495 |
| html-safe-nonce | 78dba4382e6cca19e50bcfe8b4938d5b8e8f2ff0651cf2a30323a0112230ce4c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUQ4OjI2NzlFOToyQTE1MDJFOjM4MkUyOEQ6NkIwMUM0OTUiLCJ2aXNpdG9yX2lkIjoiNzQxMjM3MzA1MDc4OTg0MDAyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 08cfed5909fca39d2e36c67b940ca141d4f6245a909485d147aaad5d66e692fc |
| hovercard-subject-tag | issue:6372302008 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/67455/issue_layout |
| twitter:image | https://opengraph.githubassets.com/373b0eb0efa5383078589f90cd4beb0b7f06ab5a3b51f614f5e2e3efa0967694/nodejs/node/issues/67455 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/373b0eb0efa5383078589f90cd4beb0b7f06ab5a3b51f614f5e2e3efa0967694/nodejs/node/issues/67455 |
| og:image:alt | Version v26.13.1 Platform Darwin foo.local 27.2.0 Darwin Kernel Version 27.2.0: Wed Oct 14 23:44:56 PDT 2026; root:xnu-13432.41.4~25/RELEASE_ARM64_T6041 arm64 Subsystem http, tls What steps will re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ajeetdsouza |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width