* fhandler_socket.cc (fhandler_socket::close): Change 2MSL value
according to MSDN.
This commit is contained in:
@ -262,7 +262,7 @@ fhandler_socket::close ()
|
||||
solution but it helps in many cases. */
|
||||
struct linger linger;
|
||||
linger.l_onoff = 1;
|
||||
linger.l_linger = 60; /* seconds. 2MSL according to BSD implementation. */
|
||||
linger.l_linger = 240; /* seconds. default 2MSL value according to MSDN. */
|
||||
setsockopt (get_socket (), SOL_SOCKET, SO_LINGER,
|
||||
(const char *)&linger, sizeof linger);
|
||||
|
||||
|
Reference in New Issue
Block a user