Why NodeJS Net::socket.readyState does not change when a connection is disconnected on Linux, but works on Windows?
I am attempting to monitor the status of a NodeJS Net::socket socket connection by periodically polling the .readyState property of the Socket client. Running the NodeJS app on Windows, this works as expected: I unplug the ethernet cable or change the remote device IP and readyState changes. Running the same NodeJS app on Linux, the readyState property remains on ‘open’ and never changes, so I can’t reliably determine if the connection is actually open or closed.