Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-09-05 13:35:08 +0400
committerCorinna Vinschen <corinna@vinschen.de>2001-09-05 13:35:08 +0400
commit669153e1444eaefba4e05995a768151ea11740b1 (patch)
treec1bcfdeaa011c4dc004f8dac22e7d951c5a43b81 /winsup/cygwin/fhandler_socket.cc
parent47497e62435513c9a32f8c511118a58357db63ed (diff)
* fhandler_socket.cc (fhandler_socket::close): Change 2MSL value
according to MSDN.
Diffstat (limited to 'winsup/cygwin/fhandler_socket.cc')
-rw-r--r--winsup/cygwin/fhandler_socket.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc
index 80d1c92ea..830ced5ae 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);