gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r5358 - GNUnet/src/util/network


From: gnunet
Subject: [GNUnet-SVN] r5358 - GNUnet/src/util/network
Date: Wed, 25 Jul 2007 23:58:01 -0600 (MDT)

Author: grothoff
Date: 2007-07-25 23:58:01 -0600 (Wed, 25 Jul 2007)
New Revision: 5358

Modified:
   GNUnet/src/util/network/io.c
Log:
reduce time wait for us

Modified: GNUnet/src/util/network/io.c
===================================================================
--- GNUnet/src/util/network/io.c        2007-07-26 05:48:35 UTC (rev 5357)
+++ GNUnet/src/util/network/io.c        2007-07-26 05:58:01 UTC (rev 5358)
@@ -139,6 +139,16 @@
   GE_ASSERT (NULL, s != NULL);
   if (s->handle != -1)
     {
+#ifdef LINUX
+      unsigned int option;
+      option = 1; /* 1s only */
+      SETSOCKOPT(s->handle,
+                IPPROTO_TCP,
+                TCP_LINGER2,
+                &option,
+                sizeof(unsigned int));
+                
+#endif      
       if ((0 != SHUTDOWN (s->handle, SHUT_RDWR)) &&
 #ifdef OSX
           (errno != EINVAL) &&  /* OS X returns these instead of ENOTCONN */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]