Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

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

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/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

The underlying details, including when it is actually appropriate to forcibly abort a connection are described in great detail here (https://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

Source Link
zahical
  • 275
  • 3
  • 9

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/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