ECONNRESET is an OS error message meaning that the other side has closed a network connection without reading outstanding data that has been sent to it, and can be triggered on both read() and write(). But the exact behavior depends on the operating system.
ECONNRESET is an error message from the networking code in an operating system.
It usually occurs when receving (reading) or sending (writing) data on a network connection. Usually it happens on a TCP/IP connection, but can happen on any connection-oriented network protocol.
The connection can be to a faraway server or to a program running on the local machine, or anything in between.
It means this: the far end of the connection slammed the connection shut. It forcibly closed it without going through the graceful shutdown process. It can be caused by a program crash, machine crash, or power failure.