Posted By:
Tim_Rohaly
Posted On:
Saturday, April 21, 2001 10:06 AM
"Connection reset by peer" means that the remote process
terminated, usually abnormally. To insulate yourself against
these errors, your server needs to catch the exception and properly
clean up (close the socket, end the thread, etc.). If you handle
the exceptions properly, then your server should be able to continue
running indefinitely.
"Connection refused" means that there is no program listening
on the host/port you are trying to connect to, which makes sense
because you said your server terminated.