From: Bart Polot Date: Mon, 16 Dec 2013 17:11:28 +0000 (+0000) Subject: - duplicate PONG can happen if PING was re-transmitted but first one came through... X-Git-Tag: initial-import-from-subversion-38251~5427 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8fab9fc75aa293be3849e30748fcf044436d7cb9;p=oweals%2Fgnunet.git - duplicate PONG can happen if PING was re-transmitted but first one came through: second PONG will be "unexpected" --- diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 47a06bf8e..bd57d94c6 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c @@ -1434,7 +1434,7 @@ handle_pong (struct MeshTunnel3 *t, LOG (GNUNET_ERROR_TYPE_DEBUG, "PONG received\n"); if (GNUNET_SCHEDULER_NO_TASK == t->rekey_task) { - GNUNET_break_op (GNUNET_NO != t->destroy); + GNUNET_STATISTICS_update (stats, "# duplicate PONG messages", 1, GNUNET_NO); return; } t_decrypt (t, &challenge, &msg->nonce, sizeof (uint32_t), msg->iv);