* fhandler_socket.cc (fhandler_socket::close): Change 2MSL value

according to MSDN.
This commit is contained in:
Corinna Vinschen 2001-09-05 09:35:08 +00:00
parent 47497e6243
commit 669153e144
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed Sep 5 11:34:00 2001 Corinna Vinschen <corinna@vinschen.de>
* fhandler_socket.cc (fhandler_socket::close): Change 2MSL value
according to MSDN.
Wed Sep 5 10:14:00 2001 Corinna Vinschen <corinna@vinschen.de> Wed Sep 5 10:14:00 2001 Corinna Vinschen <corinna@vinschen.de>
* net.cc (cygwin_connect): Add WSAEALREADY and WSAEINVAL handling * net.cc (cygwin_connect): Add WSAEALREADY and WSAEINVAL handling

View File

@ -262,7 +262,7 @@ fhandler_socket::close ()
solution but it helps in many cases. */ solution but it helps in many cases. */
struct linger linger; struct linger linger;
linger.l_onoff = 1; 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, setsockopt (get_socket (), SOL_SOCKET, SO_LINGER,
(const char *)&linger, sizeof linger); (const char *)&linger, sizeof linger);