[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31969 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31969 - gnunet/src/mesh |
Date: |
Tue, 21 Jan 2014 04:05:00 +0100 |
Author: bartpolot
Date: 2014-01-21 04:05:00 +0100 (Tue, 21 Jan 2014)
New Revision: 31969
Modified:
gnunet/src/mesh/gnunet-service-mesh_connection.c
Log:
- dont start keepalive on intermediate peers
Modified: gnunet/src/mesh/gnunet-service-mesh_connection.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_connection.c 2014-01-21 03:04:58 UTC
(rev 31968)
+++ gnunet/src/mesh/gnunet-service-mesh_connection.c 2014-01-21 03:05:00 UTC
(rev 31969)
@@ -986,6 +986,8 @@
* Schedule next keepalive task, taking in consideration
* the connection state and number of retries.
*
+ * If the peer is not the origin, do nothing.
+ *
* @param c Connection for which to schedule the next keepalive.
* @param fwd Direction for the next keepalive.
*/
@@ -996,6 +998,9 @@
GNUNET_SCHEDULER_TaskIdentifier *task_id;
GNUNET_SCHEDULER_Task keepalive_task;
+ if (GNUNET_NO == GMC_is_origin (c, fwd))
+ return;
+
/* Calculate delay to use, depending on the state of the connection */
if (MESH_CONNECTION_READY == c->state)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31969 - gnunet/src/mesh,
gnunet <=