René's URL Explorer Experiment


Title: Error on Socket unref: Cannot read properties of undefined (reading 'Symbol(timeout)') · Issue #64490 · nodejs/node · GitHub

Open Graph Title: Error on Socket unref: Cannot read properties of undefined (reading 'Symbol(timeout)') · Issue #64490 · nodejs/node

X Title: Error on Socket unref: Cannot read properties of undefined (reading 'Symbol(timeout)') · Issue #64490 · nodejs/node

Description: Version v24.18.0 Platform Linux scatha 7.0.11-76070011-generic #202606011647~1780583630~22.04~70ad774 SMP PREEMPT_DYNAMIC Thu J x86_64 x86_64 x86_64 GNU/Linux Subsystem lib/internal/tls/wrap.js What steps will reproduce the bug? Very min...

Open Graph Description: Version v24.18.0 Platform Linux scatha 7.0.11-76070011-generic #202606011647~1780583630~22.04~70ad774 SMP PREEMPT_DYNAMIC Thu J x86_64 x86_64 x86_64 GNU/Linux Subsystem lib/internal/tls/wrap.js Wha...

X Description: Version v24.18.0 Platform Linux scatha 7.0.11-76070011-generic #202606011647~1780583630~22.04~70ad774 SMP PREEMPT_DYNAMIC Thu J x86_64 x86_64 x86_64 GNU/Linux Subsystem lib/internal/tls/wrap.js Wha...

Opengraph URL: https://github.com/nodejs/node/issues/64490

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error on Socket unref: Cannot read properties of undefined (reading 'Symbol(timeout)')","articleBody":"### Version\n\nv24.18.0\n\n### Platform\n\n```text\nLinux scatha 7.0.11-76070011-generic #202606011647~1780583630~22.04~70ad774 SMP PREEMPT_DYNAMIC Thu J x86_64 x86_64 x86_64 GNU/Linux\n```\n\n### Subsystem\n\nlib/internal/tls/wrap.js\n\n### What steps will reproduce the bug?\n\nVery minimal (and artificial):\n\n```js\nconst net = require('net');\nconst s = new net.Socket();\ns._parent = undefined; // a chain link left `undefined` (see note on the trigger)\ns._unrefTimer();\n```\n\nMore representative, though the real case involved some library setting the handle to `undefined` whereas this does it explicitly:\n\n```js\nconst fs = require('fs');\nconst tls = require('tls');\n\n// self-signed cert: openssl req -x509 -newkey rsa:2048 -nodes \\\n//   -keyout key.pem -out cert.pem -days 2 -subj \"/CN=localhost\"\nconst opts = { key: fs.readFileSync('key.pem'), cert: fs.readFileSync('cert.pem') };\n\nconst server = tls.createServer(opts, (conn) => {\n  setTimeout(() => conn.write('x'), 50); // inbound record after the chain is corrupted\n});\n\nserver.listen(0, () => {\n  const client = tls.connect(\n    { port: server.address().port, rejectUnauthorized: false },\n    () => { client._parent = undefined; }, // invariant violation (stands in for teardown race)\n  );\n  client.on('error', () => {});\n});\n```\n\n### How often does it reproduce? Is there a required condition?\n\nIt seems to happen very sporadically; we're seeing a few instances a day in a system that handles significant volume.\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe object should be unref-ed, and with no parent, the parent traversal should be a no-op.\n\n### What do you see instead?\n\n```\nTypeError: Cannot read properties of undefined (reading 'Symbol(timeout)')\n    at TLSSocket._unrefTimer (node:net:529:10)\n    at TLSWrap.onStreamRead (node:internal/stream_base_commons:172:23)\n```\n\n### Additional information\n\nIn `lib/net.js`, the parent chain is traversed with an exact equality check `s !== null` which fails if some library happens to null out the parent ref with `undefined`, instead. If this were a lax (`s != null`) check, the error ought to go away.\n\n```js\n  const { kTimeout } = require('internal/timers');   // kTimeout = Symbol('timeout')\n\n  Socket.prototype._unrefTimer = function _unrefTimer() {\n    for (let s = this; s !== null; s = s._parent) {\n      if (s[kTimeout])\n        s[kTimeout].refresh();\n    }\n  };\n```","author":{"url":"https://github.com/haggholm","@type":"Person","name":"haggholm"},"datePublished":"2026-07-14T04:59:16Z","url":"https://github.com/nodejs/node/issues/64490"}

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:8c500c4f-3fd8-7c4e-be15-b15a67542fb0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA1CE:38E6D:72A9BF:95CC23:6AED32F5
html-safe-nonced7153cb804d5d9c38d2c2b011c994b445275bd2d36f474071ac01cf332d36018
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUNFOjM4RTZEOjcyQTlCRjo5NUNDMjM6NkFFRDMyRjUiLCJ2aXNpdG9yX2lkIjoiNTc1NjU5MDk0MTU2NTg3NzY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacbc6ecb921e8ae8451f7c18587acac0d7a7a3ef536ca5f47e65b80514d63af1bf
hovercard-subject-tagissue:4879985130
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/nodejs/node/64490/issue_layout
twitter:imagehttps://opengraph.githubassets.com/11d99c9f06b408fa894d8be7acbb3c032cf9f7a3a1ea60ba8ddcb84e18ca1544/nodejs/node/issues/64490
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/11d99c9f06b408fa894d8be7acbb3c032cf9f7a3a1ea60ba8ddcb84e18ca1544/nodejs/node/issues/64490
og:image:altVersion v24.18.0 Platform Linux scatha 7.0.11-76070011-generic #202606011647~1780583630~22.04~70ad774 SMP PREEMPT_DYNAMIC Thu J x86_64 x86_64 x86_64 GNU/Linux Subsystem lib/internal/tls/wrap.js Wha...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehaggholm
hostnamegithub.com
expected-hostnamegithub.com
Nonee51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
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
release59ebb7b901cc154ecc179a44f266fcf69f343b30
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/64490#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64490
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%2Fnodejs%2Fnode%2Fissues%2F64490
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=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/64490
Reloadhttps://github.com/nodejs/node/issues/64490
Reloadhttps://github.com/nodejs/node/issues/64490
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues656 (656)https://github.com/nodejs/node/issues
Pull requests665 (665)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64490
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64490
#64491https://github.com/nodejs/node/pull/64491
Error on Socket unref: Cannot read properties of undefined (reading 'Symbol(timeout)')https://github.com/nodejs/node/issues/64490#top
#64491https://github.com/nodejs/node/pull/64491
https://github.com/haggholm
haggholmhttps://github.com/haggholm
on Jul 14, 2026https://github.com/nodejs/node/issues/64490#issue-4879985130
trivikrhttps://github.com/trivikr
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
6586288https://github.com/nodejs/node/commit/6586288a412bbcd8527c30ecdb3ebfe61942ccfc
on Aug 22, 2026https://github.com/nodejs/node/issues/64490#event-29836290610
pullhttps://github.com/apps/pull
on Aug 22, 2026https://github.com/nodejs/node/issues/64490#event-29836296840
net: handle undefined parent in _unrefTimer and _destroyhttps://github.com/j3din00b/node/commit/6586288a412bbcd8527c30ecdb3ebfe61942ccfc
6586288https://github.com/j3din00b/node/commit/6586288a412bbcd8527c30ecdb3ebfe61942ccfc
aduh95https://github.com/aduh95
on Aug 25, 2026https://github.com/nodejs/node/issues/64490#event-30010186304
net: handle undefined parent in _unrefTimer and _destroyhttps://github.com/nodejs/node/commit/b261c44000695b5ea52b2b322aacde92578259e3
b261c44https://github.com/nodejs/node/commit/b261c44000695b5ea52b2b322aacde92578259e3
net: handle undefined parent in _unrefTimer and _destroyhttps://github.com/nodejs/node/commit/646221a4959819525979a9ce0dcfa9e617ef7963
646221ahttps://github.com/nodejs/node/commit/646221a4959819525979a9ce0dcfa9e617ef7963
net: handle undefined parent in _unrefTimer and _destroyhttps://github.com/nodejs/node/commit/9ad61b85411b949b72a8072eca772e6215a3ac44
9ad61b8https://github.com/nodejs/node/commit/9ad61b85411b949b72a8072eca772e6215a3ac44
aduh95https://github.com/aduh95
on Sep 7, 2026https://github.com/nodejs/node/issues/64490#event-30681668630
net: handle undefined parent in _unrefTimer and _destroyhttps://github.com/nodejs/node/commit/05cc4303989d419cf9cc9a15c19ce973c8497155
05cc430https://github.com/nodejs/node/commit/05cc4303989d419cf9cc9a15c19ce973c8497155
net: handle undefined parent in _unrefTimer and _destroyhttps://github.com/nodejs/node/commit/f45ef7342014df45e6161e6a67b303f8ae263794
f45ef73https://github.com/nodejs/node/commit/f45ef7342014df45e6161e6a67b303f8ae263794
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/64490
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64490
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.