Title: Readable stops reading · Issue #26097 · nodejs/node · GitHub
Open Graph Title: Readable stops reading · Issue #26097 · nodejs/node
X Title: Readable stops reading · Issue #26097 · nodejs/node
Description: Version: >= 10.0.0 Platform: any Subsystem: stream Consider the following example, born from discussion in #25969. const { Readable } = require('stream'); const buf = Buffer.alloc(8192); const readable = new Readable({ read() { this.push...
Open Graph Description: Version: >= 10.0.0 Platform: any Subsystem: stream Consider the following example, born from discussion in #25969. const { Readable } = require('stream'); const buf = Buffer.alloc(8192); const read...
X Description: Version: >= 10.0.0 Platform: any Subsystem: stream Consider the following example, born from discussion in #25969. const { Readable } = require('stream'); const buf = Buffer.alloc(8192);...
Opengraph URL: https://github.com/nodejs/node/issues/26097
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Readable stops reading","articleBody":"\u003c!--\r\nThank you for reporting a possible bug in Node.js.\r\n\r\nPlease fill in as much of the template below as you can.\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 the 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 can.\r\n-->\r\n\r\n* **Version**: >= 10.0.0\r\n* **Platform**: any\r\n* **Subsystem**: stream\r\n\r\n\u003c!-- Please provide more details below this comment. -->\r\n\r\nConsider the following example, born from discussion in #25969.\r\n\r\n```js\r\nconst { Readable } = require('stream');\r\n\r\nconst buf = Buffer.alloc(8192);\r\n\r\nconst readable = new Readable({\r\n read() {\r\n this.push(buf);\r\n }\r\n});\r\n\r\nreadable.on('readable', function() {\r\n const data = readable.read();\r\n console.log(data.length);\r\n});\r\n```\r\n\r\nNote that `readable.read()` is not called in a loop on purpose.\r\n\r\n**Expected behavior**\r\n\r\nAn endless loop. This works as expected in Node.js \u003c 10.0.0.\r\n\r\n**Actual behavior**\r\n\r\nReading stops after a few reads.\r\n\r\n---\r\n\r\nBisecting points to this commit: 0778f79cb37526c3f4f8bff525fc4d4ca9b86e78.","author":{"url":"https://github.com/lpinca","@type":"Person","name":"lpinca"},"datePublished":"2019-02-14T11:30:28Z","url":"https://github.com/nodejs/node/issues/26097"}
| 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:b112eaf0-11ba-0803-4c59-9bfee852d25a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE2E:1E27AA:7FA01C:AB4060:6AED26A6 |
| html-safe-nonce | 346bac97b38fb02de9c790b9de5e201126c06042178149e742cec366ef4a8c49 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTJFOjFFMjdBQTo3RkEwMUM6QUI0MDYwOjZBRUQyNkE2IiwidmlzaXRvcl9pZCI6Ijg1ODkxNDc1NjI1MTE3NzEzMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8f0f8bb6a858eedac8906b5be5aa58508ef1831d45e589cd4c85f1f31c4b6519 |
| hovercard-subject-tag | issue:410255660 |
| 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/26097/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ea28b32f6ff5cca144fdf19f2246736cf125b07e3736ba61a80027c575d6c818/nodejs/node/issues/26097 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ea28b32f6ff5cca144fdf19f2246736cf125b07e3736ba61a80027c575d6c818/nodejs/node/issues/26097 |
| og:image:alt | Version: >= 10.0.0 Platform: any Subsystem: stream Consider the following example, born from discussion in #25969. const { Readable } = require('stream'); const buf = Buffer.alloc(8192); const read... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lpinca |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2 |
| 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 | 98b41fa4b5635ceb45a4c54320fced73817ff290 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width