René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3de6697a-eeef-f3b0-0234-7eea3e25377a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE184:2A070:19EE8E:22C059:6AEDAAA5
html-safe-nonceca111ea037d9011fec12e8db0646e1ee683546b2de05594abd5541f70c121da0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTg0OjJBMDcwOjE5RUU4RToyMkMwNTk6NkFFREFBQTUiLCJ2aXNpdG9yX2lkIjoiMjg2MzQwNjMwNjY0MDYzNjU4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmace51a523c6414738e5bb49879a9a1c197ce439b116384438348587bc1e096defb
hovercard-subject-tagissue:604655712
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Automattic/mongoose/8835/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7086ebaaa0100050ff69845065d83330db4e67d89a7b579276dc037e27716f1d/Automattic/mongoose/issues/8835
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7086ebaaa0100050ff69845065d83330db4e67d89a7b579276dc037e27716f1d/Automattic/mongoose/issues/8835
og:image:altOn 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAbdelrahmanHafez
hostnamegithub.com
expected-hostnamegithub.com
None9f51e3b6c7a190e426e641ae15acbc58dd1ac2003e96b58879bbc298e213dbf3
turbo-cache-controlno-preview
go-importgithub.com/Automattic/mongoose git https://github.com/Automattic/mongoose.git
octolytics-dimension-user_id887802
octolytics-dimension-user_loginAutomattic
octolytics-dimension-repository_id597879
octolytics-dimension-repository_nwoAutomattic/mongoose
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id597879
octolytics-dimension-repository_network_root_nwoAutomattic/mongoose
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7060660810b587033ea861b8aa67beb72c8e6542
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/Automattic/mongoose/issues/8835#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAutomattic%2Fmongoose%2Fissues%2F8835
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FAutomattic%2Fmongoose%2Fissues%2F8835
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=Automattic%2Fmongoose
Reloadhttps://github.com/Automattic/mongoose/issues/8835
Reloadhttps://github.com/Automattic/mongoose/issues/8835
Reloadhttps://github.com/Automattic/mongoose/issues/8835
Automattichttps://github.com/Automattic
mongoosehttps://github.com/Automattic/mongoose
Codehttps://github.com/Automattic/mongoose
Issues170 (170)https://github.com/Automattic/mongoose/issues
Pull requests31 (31)https://github.com/Automattic/mongoose/pulls
Discussionshttps://github.com/Automattic/mongoose/discussions
Actionshttps://github.com/Automattic/mongoose/actions
Projectshttps://github.com/Automattic/mongoose/projects
Wikihttps://github.com/Automattic/mongoose/wiki
Security and quality7 (7)https://github.com/Automattic/mongoose/security
Insightshttps://github.com/Automattic/mongoose/pulse
https://github.com/Automattic/mongoose
New issuehttps://github.com/login?return_to=https://github.com/Automattic/mongoose/issues/8835
New issuehttps://github.com/login?return_to=https://github.com/Automattic/mongoose/issues/8835
#8834https://github.com/Automattic/mongoose/pull/8834
[Bug] closing a cursor on Node 14 calls on('close', callback); twicehttps://github.com/Automattic/mongoose/issues/8835#top
#8834https://github.com/Automattic/mongoose/pull/8834
https://github.com/AbdelrahmanHafez
AbdelrahmanHafezhttps://github.com/AbdelrahmanHafez
on Apr 22, 2020https://github.com/Automattic/mongoose/issues/8835#issue-604655712
streams close automaticallyhttps://github.com/nodejs/node/pull/31408
vkarpov15https://github.com/vkarpov15
completedhttps://github.com/Automattic/mongoose/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#8834https://github.com/Automattic/mongoose/pull/8834
on Apr 24, 2020https://github.com/Automattic/mongoose/issues/8835#event-3267497624
shalini-salonihttps://github.com/shalini-saloni
on Nov 30, 2025https://github.com/Automattic/mongoose/issues/8835#event-21255078502
test(cursor): increase timeout for Automatticgh-8835 tests to fix fla…https://github.com/shalini-saloni/mongoose/commit/3c8d859b56c556007ea6414ad0df553b9de5eb69
Automatticgh-8835https://github.com/Automattic/mongoose/issues/8835
3c8d859https://github.com/shalini-saloni/mongoose/commit/3c8d859b56c556007ea6414ad0df553b9de5eb69
arnav-54https://github.com/arnav-54
on Nov 30, 2025https://github.com/Automattic/mongoose/issues/8835#event-21258580009
fix: increase timeout in flaky aggregation cursor test (Automatticgh-…https://github.com/arnav-54/mongoose/commit/215c7fa29313e05b52e798173e5242d7f8dd85a2
Automatticgh-…https://github.com/Automattic/mongoose/issues/8835
215c7fahttps://github.com/arnav-54/mongoose/commit/215c7fa29313e05b52e798173e5242d7f8dd85a2
AyushCoder9https://github.com/AyushCoder9
on Nov 30, 2025https://github.com/Automattic/mongoose/issues/8835#event-21258771929
test: increase timeout for flaky cursor test (Automatticgh-8835)https://github.com/AyushCoder9/mongoose/commit/e6a63737af7a01c7a0f12d0992a182bd2df78e68
Automatticgh-8835https://github.com/Automattic/mongoose/issues/8835
e6a6373https://github.com/AyushCoder9/mongoose/commit/e6a63737af7a01c7a0f12d0992a182bd2df78e68
vkarpov15https://github.com/vkarpov15
on Dec 1, 2025https://github.com/Automattic/mongoose/issues/8835#event-21289139628
Merge pull request #15826 from arnav-54/fix-flaky-aggregation-cursor-…https://github.com/Automattic/mongoose/commit/44093b03bc2eca214746dfed1c0a0cd51debaf11
#15826https://github.com/Automattic/mongoose/pull/15826
44093b0https://github.com/Automattic/mongoose/commit/44093b03bc2eca214746dfed1c0a0cd51debaf11
Sign up for freehttps://github.com/signup?return_to=https://github.com/Automattic/mongoose/issues/8835
Sign in to commenthttps://github.com/login?return_to=https://github.com/Automattic/mongoose/issues/8835
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.