René's URL Explorer Experiment


Title: test-net-listen-ipv6only is flaky due to IPv4 port collision · Issue #64172 · nodejs/node · GitHub

Open Graph Title: test-net-listen-ipv6only is flaky due to IPv4 port collision · Issue #64172 · nodejs/node

X Title: test-net-listen-ipv6only is flaky due to IPv4 port collision · Issue #64172 · nodejs/node

Description: Test test/parallel/test-net-listen-ipv6only.js Platform Environment-independent root cause; observed on macOS (arm64) but can occur on any platform under high test parallelism. Console output Observed once during a full python3 tools/tes...

Open Graph Description: Test test/parallel/test-net-listen-ipv6only.js Platform Environment-independent root cause; observed on macOS (arm64) but can occur on any platform under high test parallelism. Console output Obser...

X Description: Test test/parallel/test-net-listen-ipv6only.js Platform Environment-independent root cause; observed on macOS (arm64) but can occur on any platform under high test parallelism. Console output Obser...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test-net-listen-ipv6only is flaky due to IPv4 port collision","articleBody":"### Test\n\n`test/parallel/test-net-listen-ipv6only.js`\n\n### Platform\n\nEnvironment-independent root cause; observed on macOS (arm64) but can occur on any platform under high test parallelism.\n\n### Console output\n\nObserved once during a full `python3 tools/test.py` run (5521 passing, this test failing). The test passes 10/10 when run in isolation, which is the typical signature of a port-collision flake.\n\n### What is the problem?\n\nThe test verifies that `ipv6Only: true` disables dual-stack support. It listens on `::` with an ephemeral port (`port: 0`) and then connects to the **same port over IPv4** (`0.0.0.0`), expecting `ECONNREFUSED` — i.e. it assumes the IPv4 side of that port is free:\n\n```js\nserver.listen({ host: '::', port: 0, ipv6Only: true }, common.mustCall(() => {\n  const { port } = server.address();\n  const socket = net.connect({ host: '0.0.0.0', port });\n  socket.on('connect', common.mustNotCall());            // \u003c- fires under collision\n  socket.on('error', common.mustCall((err) => {\n    assert.strictEqual(err.code, 'ECONNREFUSED');\n    server.close();\n  }));\n}));\n```\n\nThe IPv4 side of the chosen ephemeral port is never reserved. Under heavy parallel\nexecution another test can occupy that same IPv4 port, so the connection succeeds\ninstead of being refused and `common.mustNotCall()` on `'connect'` fires (or the\n`ECONNREFUSED` assertion fails).\n\nThis is the same port-collision flake that previously affected the sibling cluster\nvariants — see #25813 / #29679, fixed in #26298 (\"eliminate port collision\"),\n#32381 and #32398, which moved the `ipv6Only: true` cases to `test/sequential/`\nwith a static port. The plain (non-cluster) test never received that treatment.\n\n### Fix\n\nMove the test to `test/sequential/` and use a fixed `common.PORT`, so it does not run\nconcurrently with other tests competing for the same IPv4 port. PR to follow.\n","author":{"url":"https://github.com/Han5991","@type":"Person","name":"Han5991"},"datePublished":"2026-06-27T13:10:12Z","url":"https://github.com/nodejs/node/issues/64172"}

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:55b99856-2f2c-d367-02c2-0ac090eae1bb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC84C:1587FA:7D4C5C:A70F90:6AED27D0
html-safe-nonce4a6bac60d96a618aed8c30cba04c55eb1a4cc253a0029dc35cc11b8d5a6767e3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODRDOjE1ODdGQTo3RDRDNUM6QTcwRjkwOjZBRUQyN0QwIiwidmlzaXRvcl9pZCI6IjI2NzA4NDA4NDY2MjkwMjE2NDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaccdfb21e8c8ba7d1fe60296dbc97ca8574b2d45192501b0125439c616c7573f9d
hovercard-subject-tagissue:4758429848
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/64172/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b27a916ab2af07d694f7ed9ecbb1711542a63fd2f1deeb76ffbc6a2eff22a871/nodejs/node/issues/64172
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b27a916ab2af07d694f7ed9ecbb1711542a63fd2f1deeb76ffbc6a2eff22a871/nodejs/node/issues/64172
og:image:altTest test/parallel/test-net-listen-ipv6only.js Platform Environment-independent root cause; observed on macOS (arm64) but can occur on any platform under high test parallelism. Console output Obser...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameHan5991
hostnamegithub.com
expected-hostnamegithub.com
None9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2
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
release98b41fa4b5635ceb45a4c54320fced73817ff290
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/64172#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64172
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%2F64172
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/64172
Reloadhttps://github.com/nodejs/node/issues/64172
Reloadhttps://github.com/nodejs/node/issues/64172
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues657 (657)https://github.com/nodejs/node/issues
Pull requests666 (666)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/64172
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64172
#64173https://github.com/nodejs/node/pull/64173
test-net-listen-ipv6only is flaky due to IPv4 port collisionhttps://github.com/nodejs/node/issues/64172#top
#64173https://github.com/nodejs/node/pull/64173
flaky-testIssues and PRs involving tests that fail intermittently in CI.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22flaky-test%22
https://github.com/Han5991
Han5991https://github.com/Han5991
on Jun 27, 2026https://github.com/nodejs/node/issues/64172#issue-4758429848
#25813https://github.com/nodejs/node/issues/25813
#29679https://github.com/nodejs/node/issues/29679
#26298https://github.com/nodejs/node/pull/26298
#32381https://github.com/nodejs/node/pull/32381
#32398https://github.com/nodejs/node/pull/32398
Renegade334https://github.com/Renegade334
flaky-testIssues and PRs involving tests that fail intermittently in CI.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22flaky-test%22
on Jun 27, 2026https://github.com/nodejs/node/issues/64172#event-27280464196
Han5991https://github.com/Han5991
on Jun 27, 2026https://github.com/nodejs/node/issues/64172#event-27282320913
test: deflake test-net-listen-ipv6onlyhttps://github.com/Han5991/node/commit/bdd0f2f7b9047b7827ae6f94343a3d3a62904ed9
bdd0f2fhttps://github.com/Han5991/node/commit/bdd0f2f7b9047b7827ae6f94343a3d3a62904ed9
nodejs-github-bothttps://github.com/nodejs-github-bot
on Aug 22, 2026https://github.com/nodejs/node/issues/64172#event-29836506522
test: deflake test-net-listen-ipv6onlyhttps://github.com/nodejs/node/commit/280c85c1d270a45c2b624683dc1222fbdb3aed28
280c85chttps://github.com/nodejs/node/commit/280c85c1d270a45c2b624683dc1222fbdb3aed28
nodejs-github-bothttps://github.com/nodejs-github-bot
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#64173https://github.com/nodejs/node/pull/64173
on Aug 22, 2026https://github.com/nodejs/node/issues/64172#event-29836506540
aduh95https://github.com/aduh95
on Aug 25, 2026https://github.com/nodejs/node/issues/64172#event-30010186549
test: deflake test-net-listen-ipv6onlyhttps://github.com/nodejs/node/commit/c7b2f471c235977ac8e6c306826b5736f2c26066
c7b2f47https://github.com/nodejs/node/commit/c7b2f471c235977ac8e6c306826b5736f2c26066
test: deflake test-net-listen-ipv6onlyhttps://github.com/nodejs/node/commit/b6852e2b96a4b19ef71b63cb83146f084e411584
b6852e2https://github.com/nodejs/node/commit/b6852e2b96a4b19ef71b63cb83146f084e411584
test: deflake test-net-listen-ipv6onlyhttps://github.com/nodejs/node/commit/f143c70506af6f23ce8f53adcf62793ba50e2650
f143c70https://github.com/nodejs/node/commit/f143c70506af6f23ce8f53adcf62793ba50e2650
aduh95https://github.com/aduh95
on Sep 7, 2026https://github.com/nodejs/node/issues/64172#event-30681668836
test: deflake test-net-listen-ipv6onlyhttps://github.com/nodejs/node/commit/7935ae01ea6069c6daa6fd0a4df4de92c9d91a39
7935ae0https://github.com/nodejs/node/commit/7935ae01ea6069c6daa6fd0a4df4de92c9d91a39
test: deflake test-net-listen-ipv6onlyhttps://github.com/nodejs/node/commit/38fdbb62aad571379728070d59b859046978788d
38fdbb6https://github.com/nodejs/node/commit/38fdbb62aad571379728070d59b859046978788d
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/64172
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64172
flaky-testIssues and PRs involving tests that fail intermittently in CI.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22flaky-test%22
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.