The underlying details, including when it is actually appropriate to forcibly abort a connection are described in great detail here (http://stackoverflow.com/a/13088864/1280848https://stackoverflow.com/a/13088864/1280848).
The C# way of doing this is:
socket.LingerState = new LingerOption(true, 0); socket.Close(); That is, use SO_LINGER with TIME_WAIT = 0