1 @cegfault YES! and rubbish. Closing the socket closes the socket. It doesn't close any other sockets; it doesn't 'close every other connection'; it doesn't 'shut the server down'. He should close the socket on which the error occurred, unless it was just a timeout error, in which case he should retry as many times as he deems necessary. If you are talking about the listening socket, which isn't apparent from your comment, it does shut the server down, but it doesn't affect existing connections.
1 @cegfault YES! and rubbish. Closing the socket closes the socket. It doesn't close any other sockets; it doesn't 'close every other connection'; it doesn't 'shut the server down'. He should close the socket on which the error occurred, unless it wa
s just a timeout error, in which case he should retry as many times as he deems necessary. If you are talking about the listening socket, which isn't apparent from your comment, it does shut the server down, but it doesn't affect existing connections.