This support function can be used to request that, when disconnecting the current connection, IIS will use an abortive shutdown sequence to close the TCP/IP connection socket.
BOOL ServerSupportFunction(
HCONN ConnID,
DWORD HSE_REQ_ABORTIVE_CLOSE,
LPVOID lpvBuffer,
LPDWORD lpdwSize,
LPDWORD lpdwDataType
);
Abortive closure is one type of closure that can be performed by the TCP/IP socket layer. As soon as this command is received, data flow is immediately cut off, the socket's virtual circuit is reset, and any data remaining in the TCP/IP stack is deleted. Compared to the other type of TCP/IP socket closure, graceful closure, abortive closure generally performs much better.