The FIN_WAIT_2 timeout interval is the number of seconds that the HTTP server waits after sending the response for the client to close down its end of the socket. If this timeout expires, the server forcibly shuts down the connection.
This timeout interval is important for two reasons:
Waiting for some time before shutting down the socket ensures that clients get complete responses.
Timing out after certain period protects against buggy clients, which may never close their end of the socket. This can tie up resources on the server machine, leading to performance degradation and, in the extreme case, denial of service.
When the MDEX Engine finishes sending a response to a client, it does a "soft close" of the socket. This allows the client to finish reading data, and to close its end of the socket whenever it is ready. The state of the server-side socket during the interval between the server closing one end, and the client closing the other, is known as FIN_WAIT_2. All operating systems supported in this release automatically clean up sockets that stay in FIN_WAIT_2 for too long.
In general, you should not need to change this from the default value. If you do need to change the setting, follow the instructions below for your operating system.