Title: Http IncomingMessage.signal is always aborted for POST requests · Issue #63532 · nodejs/node · GitHub
Open Graph Title: Http IncomingMessage.signal is always aborted for POST requests · Issue #63532 · nodejs/node
X Title: Http IncomingMessage.signal is always aborted for POST requests · Issue #63532 · nodejs/node
Description: Version 24.16 Platform Linux Subsystem No response What steps will reproduce the bug? const http = require('node:http'); const server = http.createServer(async (req, res) => { // req.signal is an AbortSignal that aborts when the client d...
Open Graph Description: Version 24.16 Platform Linux Subsystem No response What steps will reproduce the bug? const http = require('node:http'); const server = http.createServer(async (req, res) => { // req.signal is an A...
X Description: Version 24.16 Platform Linux Subsystem No response What steps will reproduce the bug? const http = require('node:http'); const server = http.createServer(async (req, res) => { // req.sig...
Opengraph URL: https://github.com/nodejs/node/issues/63532
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Http IncomingMessage.signal is always aborted for POST requests","articleBody":"### Version\n\n24.16\n\n### Platform\n\n```text\nLinux\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\n```js\nconst http = require('node:http');\n\nconst server = http.createServer(async (req, res) =\u003e {\n // req.signal is an AbortSignal that aborts when the client disconnects\n const { signal } = req;\n\n console.log('Request received. Starting long task...');\n\n try {\n // You can pass the signal directly to other APIs like fetch() or fs.promises\n await performLongTask(signal);\n \n res.writeHead(200, { 'Content-Type': 'text/plain' });\n res.end('Task completed successfully!');\n } catch (err) {\n if (err.name === 'AbortError') {\n console.log('Request was aborted by the client. Cleaning up...');\n } else {\n console.error('An error occurred:', err);\n res.statusCode = 500;\n res.end('Internal Server Error');\n }\n }\n});\n\n// Mock function representing an asynchronous task\nfunction performLongTask(signal) {\n return new Promise((resolve, reject) =\u003e {\n const timeout = setTimeout(() =\u003e {\n resolve();\n }, 5000);\n\n // Manually listen for the abort event if the API doesn't support signals\n signal.addEventListener('abort', () =\u003e {\n clearTimeout(timeout);\n reject(new DOMException('Aborted', 'AbortError'));\n }, { once: true });\n });\n}\n\nserver.listen(3000, () =\u003e {\n console.log('Server running at http://localhost:3000/');\n});\n```\n\nSending get request works, but sending POST/PATCH with a request body always results in signal being aborted automatically at start of the requst.\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nSignal should not aborted in any requests with body such as POST\n\n### What do you see instead?\n\nFor any request with body such as POST, signal is set to Aborted right from beginning.\n\n### Additional information\n\nThis was never an issue before 24.14","author":{"url":"https://github.com/ackava","@type":"Person","name":"ackava"},"datePublished":"2026-05-24T09:09:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/63532/node/issues/63532"}
| 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:d28b3af2-bd51-3dc0-cd8e-64c15479f259 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E94C:2E9611:DACB3E:13A99A2:6A4E4FDF |
| html-safe-nonce | 30bca75be0035c3114f50ad8a38ae7a67e3dfc2478350370f44f9b45ec195a2a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTRDOjJFOTYxMTpEQUNCM0U6MTNBOTlBMjo2QTRFNEZERiIsInZpc2l0b3JfaWQiOiI3NTMyMDQ3NjMyOTY2NzY2NTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c4665907dbf2934a39485b44c85d7a7831874a05694526f3b3c9a3dbfcb0a850 |
| hovercard-subject-tag | issue:4511053408 |
| 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/63532/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca16f514d11ba7ed0b0f24268a26b621b1f3a78d2559da1cfc79c1143387ef8c/nodejs/node/issues/63532 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca16f514d11ba7ed0b0f24268a26b621b1f3a78d2559da1cfc79c1143387ef8c/nodejs/node/issues/63532 |
| og:image:alt | Version 24.16 Platform Linux Subsystem No response What steps will reproduce the bug? const http = require('node:http'); const server = http.createServer(async (req, res) => { // req.signal is an A... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ackava |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | f344f1eab54fc7dfc02d0d018cda7e158c3db65c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width