Title: `pipeline` leaves a hanging error handler · Issue #35452 · nodejs/node · GitHub
Open Graph Title: `pipeline` leaves a hanging error handler · Issue #35452 · nodejs/node
X Title: `pipeline` leaves a hanging error handler · Issue #35452 · nodejs/node
Description: Version: 14.12.0 Platform: Linux SZM-DESKTOP 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Subsystem: stream What steps will reproduce the bug? const {pipeline, Duplex, PassThrough} = requ...
Open Graph Description: Version: 14.12.0 Platform: Linux SZM-DESKTOP 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Subsystem: stream What steps will reproduce the bug? cons...
X Description: Version: 14.12.0 Platform: Linux SZM-DESKTOP 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Subsystem: stream What steps will reproduce the bug? cons...
Opengraph URL: https://github.com/nodejs/node/issues/35452
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`pipeline` leaves a hanging error handler","articleBody":"* **Version**: 14.12.0\r\n* **Platform**: `Linux SZM-DESKTOP 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux`\r\n* **Subsystem**: stream\r\n\r\n### What steps will reproduce the bug?\r\n\r\n```js\r\nconst {pipeline, Duplex, PassThrough} = require('stream');\r\n\r\nconst a = new PassThrough();\r\na.end('foobar');\r\n\r\nconst b = new Duplex({\r\n write(chunk, encoding, callback) {\r\n callback();\r\n }\r\n});\r\n\r\npipeline(a, b, error => {\r\n if (error) {\r\n throw error;\r\n }\r\n \r\n console.log(b.listenerCount('error'));\r\n setTimeout(() => {\r\n console.log(b.listenerCount('error'));\r\n b.destroy(new Error('no way'));\r\n }, 100);\r\n});\r\n```\r\n\r\n### How often does it reproduce? Is there a required condition?\r\n\r\nAlways.\r\n\r\n### What is the expected behavior?\r\n\r\n```\r\n0\r\n0\r\n[Uncaught] Error: no way\r\n```\r\n\r\n### What do you see instead?\r\n\r\n```\r\n2\r\n1\r\n```\r\n\r\n/cc @ronag","author":{"url":"https://github.com/szmarczak","@type":"Person","name":"szmarczak"},"datePublished":"2020-10-01T20:33:29Z","url":"https://github.com/nodejs/node/issues/35452"}
| 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:f2a76dc0-2cad-bb42-fa11-ec55484fd4a6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 81AE:1D2BD1:5D036A:7E947D:6AED2113 |
| html-safe-nonce | 28a8f2e0a6aee98c72b8aa48e65b8ccc84f0f2b7080506e31263ff712107ffe0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUFFOjFEMkJEMTo1RDAzNkE6N0U5NDdEOjZBRUQyMTEzIiwidmlzaXRvcl9pZCI6IjU1NDAwNDEwNzk1Mzc4NjkwNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9dda905e3abb7a3244262afaea448020235c488737b3126ac6b635d215b132fc |
| hovercard-subject-tag | issue:713164678 |
| 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/35452/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0ae40a9ed957da44de90819127c272387ff82d058f300e7e42e6d93f814a65f2/nodejs/node/issues/35452 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0ae40a9ed957da44de90819127c272387ff82d058f300e7e42e6d93f814a65f2/nodejs/node/issues/35452 |
| og:image:alt | Version: 14.12.0 Platform: Linux SZM-DESKTOP 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Subsystem: stream What steps will reproduce the bug? cons... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | szmarczak |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6 |
| 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 | 707a24b346ac8a82878b9c084efaa38a997660cb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width