Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 979 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 979 Bytes

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