gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r5241 - GNUnet/src/transports


From: gnunet
Subject: [GNUnet-SVN] r5241 - GNUnet/src/transports
Date: Wed, 4 Jul 2007 23:50:25 -0600 (MDT)

Author: grothoff
Date: 2007-07-04 23:50:25 -0600 (Wed, 04 Jul 2007)
New Revision: 5241

Modified:
   GNUnet/src/transports/tcp6.c
   GNUnet/src/transports/tcp_helper.c
Log:
syn

Modified: GNUnet/src/transports/tcp6.c
===================================================================
--- GNUnet/src/transports/tcp6.c        2007-07-05 05:42:04 UTC (rev 5240)
+++ GNUnet/src/transports/tcp6.c        2007-07-05 05:50:25 UTC (rev 5241)
@@ -43,6 +43,15 @@
  */
 #define TCP6_TIMEOUT 600 * cronSECONDS
 
+/**
+ * after how much time of the core not being associated with a tcp
+ * connection anymore do we close it?
+ *
+ * Needs to be larger than SECONDS_INACTIVE_DROP in
+ * core's connection.s
+ */
+#define TCP_FAST_TIMEOUT (5 * cronSECONDS)
+
 #define TARGET_BUFFER_SIZE 4092
 
 #include "tcp_helper.c"

Modified: GNUnet/src/transports/tcp_helper.c
===================================================================
--- GNUnet/src/transports/tcp_helper.c  2007-07-05 05:42:04 UTC (rev 5240)
+++ GNUnet/src/transports/tcp_helper.c  2007-07-05 05:50:25 UTC (rev 5241)
@@ -197,10 +197,10 @@
   GE_ASSERT(ectx, tsession != NULL);
   tcpSession = tsession->internal;
   MUTEX_LOCK(tcpSession->lock);
-  if ( (tcpsession->users == 0) &&
-       (tcpsession->in_select == YES) )
+  if ( (tcpSession->users == 0) &&
+       (tcpSession->in_select == YES) )
     select_change_timeout(selector,
-                         tcpsession->sock,
+                         tcpSession->sock,
                          0 /* default */);
   tcpSession->users++;
   





reply via email to

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