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.
- Clone the repo
- Run:
npm install
npm start
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