gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r23295 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r23295 - gnunet/src/mesh
Date: Sat, 18 Aug 2012 04:10:31 +0200

Author: bartpolot
Date: 2012-08-18 04:10:31 +0200 (Sat, 18 Aug 2012)
New Revision: 23295

Modified:
   gnunet/src/mesh/mesh_api.c
Log:
- adjust initial ack value for clients

Modified: gnunet/src/mesh/mesh_api.c
===================================================================
--- gnunet/src/mesh/mesh_api.c  2012-08-18 02:04:55 UTC (rev 23294)
+++ gnunet/src/mesh/mesh_api.c  2012-08-18 02:10:31 UTC (rev 23295)
@@ -454,7 +454,7 @@
   {
     t->tid = tid;
   }
-  t->max_send_pid = 1;
+  t->max_send_pid = 0;
   return t;
 }
 
@@ -2051,8 +2051,7 @@
   add_to_queue (tunnel->mesh, th);
   if (NULL != tunnel->mesh->th)
     return th;
-  if (GNUNET_NO == PID_OVERFLOW(tunnel->next_send_pid, tunnel->max_send_pid) &&
-      tunnel->max_send_pid <= tunnel->next_send_pid)
+  if (GMC_is_pid_bigger(tunnel->next_send_pid, tunnel->max_send_pid))
     return th;
   LOG (GNUNET_ERROR_TYPE_DEBUG, "    call notify tmt rdy\n");
   tunnel->mesh->th =




reply via email to

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