Title: [Bug] closing a cursor on Node 14 calls on('close', callback); twice · Issue #8835 · Automattic/mongoose · GitHub
Open Graph Title: [Bug] closing a cursor on Node 14 calls on('close', callback); twice · Issue #8835 · Automattic/mongoose
X Title: [Bug] closing a cursor on Node 14 calls on('close', callback); twice · Issue #8835 · Automattic/mongoose
Description: On node 14 streams close automatically which caused cursor.on('close', callback); to call callback twice, since we emit 'close' manually in mongoose. To fix this we need to check whether the cursor is destroyed or not, if destroyed, do n...
Open Graph Description: On node 14 streams close automatically which caused cursor.on('close', callback); to call callback twice, since we emit 'close' manually in mongoose. To fix this we need to check whether the cursor...
X Description: On node 14 streams close automatically which caused cursor.on('close', callback); to call callback twice, since we emit 'close' manually in mongoose. To fix this we need to check wh...
Opengraph URL: https://github.com/Automattic/mongoose/issues/8835
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug] closing a cursor on Node 14 calls on('close', callback); twice","articleBody":"On node 14 [streams close automatically](https://github.com/nodejs/node/pull/31408) which caused `cursor.on('close', callback);` to call callback twice, since we emit 'close' manually in mongoose.\r\n\r\nTo fix this we need to check whether the cursor is destroyed or not, if destroyed, do nothing.","author":{"url":"https://github.com/AbdelrahmanHafez","@type":"Person","name":"AbdelrahmanHafez"},"datePublished":"2020-04-22T10:47:22Z","url":"https://github.com/Automattic/mongoose/issues/8835"}
| 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:3de6697a-eeef-f3b0-0234-7eea3e25377a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E184:2A070:19EE8E:22C059:6AEDAAA5 |
| html-safe-nonce | ca111ea037d9011fec12e8db0646e1ee683546b2de05594abd5541f70c121da0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTg0OjJBMDcwOjE5RUU4RToyMkMwNTk6NkFFREFBQTUiLCJ2aXNpdG9yX2lkIjoiMjg2MzQwNjMwNjY0MDYzNjU4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e51a523c6414738e5bb49879a9a1c197ce439b116384438348587bc1e096defb |
| hovercard-subject-tag | issue:604655712 |
| 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/Automattic/mongoose/8835/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7086ebaaa0100050ff69845065d83330db4e67d89a7b579276dc037e27716f1d/Automattic/mongoose/issues/8835 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7086ebaaa0100050ff69845065d83330db4e67d89a7b579276dc037e27716f1d/Automattic/mongoose/issues/8835 |
| og:image:alt | On node 14 streams close automatically which caused cursor.on('close', callback); to call callback twice, since we emit 'close' manually in mongoose. To fix this we need to check whether the cursor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AbdelrahmanHafez |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9f51e3b6c7a190e426e641ae15acbc58dd1ac2003e96b58879bbc298e213dbf3 |
| turbo-cache-control | no-preview |
| go-import | github.com/Automattic/mongoose git https://github.com/Automattic/mongoose.git |
| octolytics-dimension-user_id | 887802 |
| octolytics-dimension-user_login | Automattic |
| octolytics-dimension-repository_id | 597879 |
| octolytics-dimension-repository_nwo | Automattic/mongoose |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 597879 |
| octolytics-dimension-repository_network_root_nwo | Automattic/mongoose |
| 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 | 7060660810b587033ea861b8aa67beb72c8e6542 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width