René's URL Explorer Experiment


Title: intermittent unexpected socket closure on Mac OS X · Issue #2610 · nodejs/node · GitHub

Open Graph Title: intermittent unexpected socket closure on Mac OS X · Issue #2610 · nodejs/node

X Title: intermittent unexpected socket closure on Mac OS X · Issue #2610 · nodejs/node

Description: Ref: #1100 Ref: nodejs/node-v0.x-archive#16805 The following code will throw on OS X. It might take a while but it will happen. I usually see the error before runcount hits 2000. 'use strict'; const fork = require('child_process').fork; ...

Open Graph Description: Ref: #1100 Ref: nodejs/node-v0.x-archive#16805 The following code will throw on OS X. It might take a while but it will happen. I usually see the error before runcount hits 2000. 'use strict'; cons...

X Description: Ref: #1100 Ref: nodejs/node-v0.x-archive#16805 The following code will throw on OS X. It might take a while but it will happen. I usually see the error before runcount hits 2000. 'use strict...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"intermittent unexpected socket closure on Mac OS X","articleBody":"Ref: https://github.com/nodejs/node/issues/1100\nRef: https://github.com/joyent/node/issues/16805\n\nThe following code will throw on OS X. It might take a while but it will happen. I usually see the error before runcount hits 2000.\n\n``` javascript\n'use strict';\nconst fork = require('child_process').fork;\nconst net = require('net');\nconst count = 12;\nconst port = 12346;\n\nif (process.argv[2] === 'child') {\n  let sockets = [];\n\n  process.on('message', function(m, socket) {\n    function sendClosed(id) {\n      process.send({ id: id, status: 'closed'});\n    };\n\n    if (m.cmd === 'new') {\n      sockets.push(socket);\n    }\n\n    if (m.cmd === 'close') {\n      if (sockets[m.id].destroyed) {\n        throw new Error('socket already destroyed');\n      }\n      sockets[m.id].once('close', sendClosed.bind(null, m.id));\n      sockets[m.id].destroy();\n    }\n\n    if (m.cmd === 'clear') {\n      sockets = [];\n    }\n  });\n\n} else {\n  const child = fork(process.argv[1], ['child']);\n\n  const server = net.createServer();\n  let sockets = [];\n\n  server.on('connection', function(socket) {\n    child.send({ cmd: 'new' }, socket);\n    sockets.push(socket);\n\n    if (sockets.length === count) {\n      closeSockets(0);\n    }\n  });\n\n  function createSockets() {\n    let j = count, client;\n    while (j--) {\n      client = net.connect(port, '127.0.0.1');\n    }\n  }\n\n  server.on('listening', function() {\n    createSockets();\n  });\n\n  let runCount = 0;\n  function closeSockets(i) {\n    if (i === count) {\n      console.log('run count: ' + ++runCount);\n      child.send({ cmd: 'clear' });\n      sockets = [];\n      return createSockets();\n    }\n\n    child.once('message', function(m) {\n      server.getConnections(function(err, num) {\n        closeSockets(i + 1);\n      });\n    });\n    child.send({ id: i, cmd: 'close' });\n  };\n\n  server.listen(port, '127.0.0.1');\n}\n```\n","author":{"url":"https://github.com/Trott","@type":"Person","name":"Trott"},"datePublished":"2015-08-29T04:12:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/2610/node/issues/2610"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c1ec9073-ab98-5c25-2b8e-2d37912d1117
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9FD0:6F3CF:33A7B3B:488A06B:6A4F8106
html-safe-nonce8e96e2d0b705dfe2d415eca40b4a8953a202eb665a70e6373009b9bd44775772
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkQwOjZGM0NGOjMzQTdCM0I6NDg4QTA2Qjo2QTRGODEwNiIsInZpc2l0b3JfaWQiOiIyNDE2Nzc0Nzk2NDEyOTQ0NjQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf1d6563070a3d70f9d75e87dc5fd7012328abef88b0e1b24881f19647abb812d
hovercard-subject-tagissue:103827494
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/2610/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7ae184bfce47108b933f60dc03e1700c1bdacd366f86d349d2a8c43e3ee4936e/nodejs/node/issues/2610
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7ae184bfce47108b933f60dc03e1700c1bdacd366f86d349d2a8c43e3ee4936e/nodejs/node/issues/2610
og:image:altRef: #1100 Ref: nodejs/node-v0.x-archive#16805 The following code will throw on OS X. It might take a while but it will happen. I usually see the error before runcount hits 2000. 'use strict'; cons...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameTrott
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
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
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/issues/2610#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F2610
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F2610
Sign up https://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/2610
Reloadhttps://github.com/nodejs/node/issues/2610
Reloadhttps://github.com/nodejs/node/issues/2610
Please reload this pagehttps://github.com/nodejs/node/issues/2610
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/issues/2610
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.3k https://github.com/nodejs/node/issues
Pull requests 973 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
intermittent unexpected socket closure on Mac OS Xhttps://github.com/nodejs/node/issues/2610#top
confirmed-bugIssues with confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
macosIssues and PRs related to the macOS platform / OSX.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22macos%22
netIssues and PRs related to the net subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22net%22
https://github.com/Trott
Trotthttps://github.com/Trott
on Aug 29, 2015https://github.com/nodejs/node/issues/2610#issue-103827494
#1100https://github.com/nodejs/node/issues/1100
nodejs/node-v0.x-archive#16805https://github.com/nodejs/node-v0.x-archive/issues/16805
confirmed-bugIssues with confirmed bugs.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22confirmed-bug%22
macosIssues and PRs related to the macOS platform / OSX.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22macos%22
netIssues and PRs related to the net subsystem.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22net%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.