{"id":17218656,"url":"https://github.com/jwulf/electron-3-socket-bug","last_synced_at":"2026-04-15T23:31:07.190Z","repository":{"id":138431627,"uuid":"151191005","full_name":"jwulf/electron-3-socket-bug","owner":"jwulf","description":"This is a minimal reproducer for an Electron 3 renderer bug - Issue #14915","archived":false,"fork":false,"pushed_at":"2018-10-02T04:26:36.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-22T05:49:15.334Z","etag":null,"topics":["bug","electron","renderer","reproducer","socket","timeout"],"latest_commit_sha":null,"homepage":"https://github.com/electron/electron/issues/14915","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jwulf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-02T02:39:32.000Z","updated_at":"2018-10-02T04:26:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"e043e97d-3c0d-43d0-afda-55db27027eae","html_url":"https://github.com/jwulf/electron-3-socket-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jwulf/electron-3-socket-bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Felectron-3-socket-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Felectron-3-socket-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Felectron-3-socket-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Felectron-3-socket-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwulf","download_url":"https://codeload.github.com/jwulf/electron-3-socket-bug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwulf%2Felectron-3-socket-bug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31864906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bug","electron","renderer","reproducer","socket","timeout"],"created_at":"2024-10-15T03:47:40.841Z","updated_at":"2026-04-15T23:31:07.117Z","avatar_url":"https://github.com/jwulf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Electron 3 Socket Bug Reproducer\n\nThis is a reproducer for [ELECTRON-14915](https://github.com/electron/electron/issues/14915).\n\nThe call to [`net.Socket.setTimeout(0)`](https://nodejs.org/api/net.html#net_socket_settimeout_timeout_callback) does not clear the socket timeout as expected in the Electron 3 renderer.\n\nIt works as expected in the main process.\n\nThe issue seems to be with line 418 of Node's [net.js](https://github.com/nodejs/node/blob/8c70b2084ce5f76ea1e3b3c4ccdeee4483fe338b/lib/net.js#L418), which has no effect in the renderer.\n\n## To Run\n\n1. Clone the repo\n2. Run:\n\n```bash\nnpm install\nnpm start\n```\n\n## Output\n\nIn the terminal you will see:\n\n```bash \nCreating socket server...\nSocket server started\nSocket client #1 connected\nMain socket connected. Clearing timeout...\nSocket client #2 connected\n```\n\nIn the electron renderer console you will see:\n\n```bash\nRenderer socket connected. Clearing timeout...\nRenderer timed out - this should never be called\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwulf%2Felectron-3-socket-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwulf%2Felectron-3-socket-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwulf%2Felectron-3-socket-bug/lists"}