Error Message:

WINSOCK Error: Can't send after socket shutdown.

Explanation:

You might receive this message if a sockets client is actively sending or receiving data to or from an SQL server and the network connection is lost. You might also receive this message from the server because of client application errors or computer errors such as running out memory.

User Action:

Developer suggestion: No matter what value you use for the "how" parameter to the shutdown() function, you cannot send afterwards. You can avoid making the mistake of trying to send on a socket after you have initiated a close, by keeping track of the socket state in your application (and checking it before you attempt any I/O operation).