You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How often does it reproduce? Is there a required condition?
Until node v20.2.0, it works as expected, i.e., primary process never closes the socket, from v20.3.0 onwards, it does not work as expected, primary process sometimes closes the socket. In some environments, if totalExecutions in above browser snippet is changed to 7, it reproduces the error consistently.
What is the expected behavior? Why is that the expected behavior?
As in node v20.2.0 (irrelevant of whether connection is close or keep-alive), primary process should never close the socket. In worker process, socket is closed (see the example worker.js above).
What do you see instead?
Primary process closes the socket and the client (browser) gets the following message:
pmadhur
changed the title
[Cluster] Primary process closes socket sporadically in docker environments
[Cluster] Primary process closes socket sporadically in linux
Feb 3, 2024
Version
20.3.0
Platform
Linux *** 6.5.0-15-generic #15~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 12 18:54:30 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
server.js
worker.js
Start node server
Open a browser, navigate to http://localhost:3000, open devtools, and execute the following snippet:
How often does it reproduce? Is there a required condition?
Until node v20.2.0, it works as expected, i.e., primary process never closes the socket, from v20.3.0 onwards, it does not work as expected, primary process sometimes closes the socket. In some environments, if totalExecutions in above browser snippet is changed to 7, it reproduces the error consistently.
What is the expected behavior? Why is that the expected behavior?
As in node v20.2.0 (irrelevant of whether connection is close or keep-alive), primary process should never close the socket. In worker process, socket is closed (see the example worker.js above).
What do you see instead?
Primary process closes the socket and the client (browser) gets the following message:
Additional information
Basic Hardware Info:
memory 64KiB BIOS
memory 16GiB System Memory
memory 8GiB SODIMM DDR4 Synchronous 2400 MHz (0.4 ns)
memory 8GiB SODIMM DDR4 Synchronous 2400 MHz (0.4 ns)
memory 256KiB L1 cache
memory 1MiB L2 cache
memory 8MiB L3 cache
processor Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
disk 500GB NVMe disk
The text was updated successfully, but these errors were encountered: