Skip to content

jwulf/electron-3-socket-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Electron 3 Socket Bug Reproducer

This is a reproducer for ELECTRON-14915.

The call to net.Socket.setTimeout(0) does not clear the socket timeout as expected in the Electron 3 renderer.

It works as expected in the main process.

The issue seems to be with line 418 of Node's net.js, which has no effect in the renderer.

To Run

  1. Clone the repo
  2. Run:
npm install
npm start

Output

In the terminal you will see:

Creating socket server...
Socket server started
Socket client #1 connected
Main socket connected. Clearing timeout...
Socket client #2 connected

In the electron renderer console you will see:

Renderer socket connected. Clearing timeout...
Renderer timed out - this should never be called

About

This is a minimal reproducer for an Electron 3 renderer bug - Issue #14915

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published