Last modified 5 years ago Last modified on 09/27/13 17:09:36

Question: What is the 10054 error I often see for socket programs in EW


This is an indication that the peer has forcibly closed a socket connection (terminated abnormally or without proper TCP protocol). Microsoft has this to write about the error:

Error No = 10054


Connection reset by peer. An existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, or the remote host uses a hard close (see setsockopt (Windows Sockets) for more information on the SO_LINGER option on the remote socket.) This error may also result if a connection was broken due to keep-alive activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET. 

Okay, so what does that mean really? Well it means your exporter or importer is terminating in the case of an Earthworm export/import problem which could be due to a true network connection, problems with the hosts themselves (did they reboot), or possibly statmgr killing a process because internal ring heartbeats were not monitored correctly.