gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r35918 - gnunet/src/cadet


From: gnunet
Subject: [GNUnet-SVN] r35918 - gnunet/src/cadet
Date: Wed, 10 Jun 2015 14:08:19 +0200

Author: bartpolot
Date: 2015-06-10 14:08:19 +0200 (Wed, 10 Jun 2015)
New Revision: 35918

Modified:
   gnunet/src/cadet/gnunet-service-cadet_tunnel.c
Log:
Always allow a connection to receive data in a tunnel, even if all buffers are 
full: new channels and keepalives must be allowed.

Modified: gnunet/src/cadet/gnunet-service-cadet_tunnel.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_tunnel.c      2015-06-10 12:08:18 UTC 
(rev 35917)
+++ gnunet/src/cadet/gnunet-service-cadet_tunnel.c      2015-06-10 12:08:19 UTC 
(rev 35918)
@@ -43,6 +43,7 @@
 #define DUMP_KEYS_TO_STDERR GNUNET_NO
 #endif
 
+#define MIN_TUNNEL_BUFFER       8
 #define MAX_SKIPPED_KEYS        64
 #define MAX_KEY_GAP             256
 #define AX_HEADER_SIZE (sizeof (uint32_t) * 2\
@@ -3876,7 +3877,7 @@
   {
     /* Probably getting buffer for a channel create/handshake. */
     LOG (GNUNET_ERROR_TYPE_DEBUG, "  no channels, allow max\n");
-    return 64;
+    return MIN_TUNNEL_BUFFER;
   }
 
   buffer = 0;
@@ -3886,6 +3887,8 @@
     if (ch_buf > buffer)
       buffer = ch_buf;
   }
+  if (MIN_TUNNEL_BUFFER > buffer)
+    return MIN_TUNNEL_BUFFER;
   return buffer;
 }
 




reply via email to

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