Title: Backpressure on http.ServerResponse · Issue #10256 · nodejs/node · GitHub
Open Graph Title: Backpressure on http.ServerResponse · Issue #10256 · nodejs/node
X Title: Backpressure on http.ServerResponse · Issue #10256 · nodejs/node
Description: Version: v6.9.2 Platform: Linux david-Latitude-E6440 4.8.0-27-generic #29-Ubuntu SMP Thu Oct 20 21:03:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Subsystem: http, stream Here's a test program: var http = require('http'), PassThrough = req...
Open Graph Description: Version: v6.9.2 Platform: Linux david-Latitude-E6440 4.8.0-27-generic #29-Ubuntu SMP Thu Oct 20 21:03:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Subsystem: http, stream Here's a test program: var h...
X Description: Version: v6.9.2 Platform: Linux david-Latitude-E6440 4.8.0-27-generic #29-Ubuntu SMP Thu Oct 20 21:03:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Subsystem: http, stream Here's a test program: v...
Opengraph URL: https://github.com/nodejs/node/issues/10256
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Backpressure on http.ServerResponse","articleBody":"\u003c!--\r\nThank you for reporting an issue.\r\n\r\nThis issue tracker is for bugs and issues found within Node.js core.\r\nIf you require more general support please file an issue on our help\r\nrepo. https://github.com/nodejs/help\r\n\r\n\r\nPlease fill in as much of the template below as you're able.\r\n\r\nVersion: output of `node -v`\r\nPlatform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)\r\nSubsystem: if known, please specify affected core module name\r\n\r\nIf possible, please provide code that demonstrates the problem, keeping it as\r\nsimple and free of external dependencies as you are able.\r\n-->\r\n\r\n* **Version**: v6.9.2\r\n* **Platform**: Linux david-Latitude-E6440 4.8.0-27-generic #29-Ubuntu SMP Thu Oct 20 21:03:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\n* **Subsystem**: http, stream\r\n\r\n\u003c!-- Enter your issue details below this comment. -->\r\n\r\nHere's a test program:\r\n\r\n```javascript\r\nvar http = require('http'),\r\n PassThrough = require('stream').PassThrough,\r\n server = http.createServer();\r\n\r\nserver.on('request', function (req, res)\r\n{\r\n console.log('REQUEST');\r\n \r\n var pthru = new PassThrough();\r\n\r\n pthru.on('end', function ()\r\n {\r\n console.log(\"PASSTHROUGH END\");\r\n });\r\n\r\n pthru.pipe(res);\r\n\r\n pthru.end(new Buffer(1024*1024));\r\n});\r\n\r\nserver.listen(8700, function ()\r\n{\r\n http.request(\r\n {\r\n port: 8700,\r\n method: 'GET'\r\n }, function (res)\r\n {\r\n console.log('RESPONSE');\r\n\r\n res.on('end', function ()\r\n {\r\n console.log(\"RESPONSE END\");\r\n });\r\n }).end();\r\n});\r\n```\r\n\r\nI expected it to display:\r\n\r\n```\r\nREQUEST\r\nRESPONSE\r\n```\r\n\r\nbecause the client-side isn't reading from the response so back-pressure should be applied via `res` to `pthru`.\r\n\r\nHowever, it actually displays:\r\n\r\n```\r\nREQUEST\r\nPASSTHROUGH END\r\nRESPONSE\r\n```\r\n\r\nI think maybe I'm missing something, or is this a bug?\r\n\r\n\r\n","author":{"url":"https://github.com/davedoesdev","@type":"Person","name":"davedoesdev"},"datePublished":"2016-12-13T22:24:04Z","url":"https://github.com/nodejs/node/issues/10256"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b4f7eee1-812b-0611-72a3-559733883039 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF14:273AB2:B6010B:EF6A85:6AED4A18 |
| html-safe-nonce | 8957ffdae88a15988d7f05803816b2ec41c8d14c0a24bf89548fb59d4ff66b1c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjE0OjI3M0FCMjpCNjAxMEI6RUY2QTg1OjZBRUQ0QTE4IiwidmlzaXRvcl9pZCI6Ijc0ODA3NDIwODgyNTc5MTU0MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dac57eaaee2f75e1297c789b4790f29025a5f2ef234eafc82081b3e14a388599 |
| hovercard-subject-tag | issue:195386257 |
| 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/10256/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5b9ad8f20a5ddf33191fda6963969c9a4ff5f2ed82d31486ab07c94c84bc766b/nodejs/node/issues/10256 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5b9ad8f20a5ddf33191fda6963969c9a4ff5f2ed82d31486ab07c94c84bc766b/nodejs/node/issues/10256 |
| og:image:alt | Version: v6.9.2 Platform: Linux david-Latitude-E6440 4.8.0-27-generic #29-Ubuntu SMP Thu Oct 20 21:03:13 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux Subsystem: http, stream Here's a test program: var h... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davedoesdev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11 |
| 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 | 9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width