Socket Shutdown: when should I use SocketShutdown.Both
问题 I believe the shutdown sequence is as follows (as described here): The MSDN documentation (remarks section) reads: When using a connection-oriented Socket , always call the Shutdown method before closing the Socket . This ensures that all data is sent and received on the connected socket before it is closed. This seems to imply that if I use Shutdown(SocketShutdown.Both) , any data that has not yet been received, may still be consumed. To test this: I continuously send data to the client (via