diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-09-05 09:35:08 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-09-05 09:35:08 +0000 |
commit | 669153e1444eaefba4e05995a768151ea11740b1 (patch) | |
tree | c1bcfdeaa011c4dc004f8dac22e7d951c5a43b81 | |
parent | 47497e62435513c9a32f8c511118a58357db63ed (diff) | |
download | newlib-669153e1444eaefba4e05995a768151ea11740b1.zip newlib-669153e1444eaefba4e05995a768151ea11740b1.tar.gz newlib-669153e1444eaefba4e05995a768151ea11740b1.tar.bz2 |
* fhandler_socket.cc (fhandler_socket::close): Change 2MSL value
according to MSDN.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_socket.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 4728bc1..c412c7f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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> * net.cc (cygwin_connect): Add WSAEALREADY and WSAEINVAL handling diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index 80d1c92..830ced5 100644 --- a/winsup/cygwin/fhandler_socket.cc +++ b/winsup/cygwin/fhandler_socket.cc @@ -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); |