gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r16947 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r16947 - gnunet/src/fs
Date: Mon, 19 Sep 2011 11:38:37 +0200

Author: grothoff
Date: 2011-09-19 11:38:36 +0200 (Mon, 19 Sep 2011)
New Revision: 16947

Modified:
   gnunet/src/fs/gnunet-service-fs_cp.c
Log:
no latency can happen, should be rare

Modified: gnunet/src/fs/gnunet-service-fs_cp.c
===================================================================
--- gnunet/src/fs/gnunet-service-fs_cp.c        2011-09-19 09:38:28 UTC (rev 
16946)
+++ gnunet/src/fs/gnunet-service-fs_cp.c        2011-09-19 09:38:36 UTC (rev 
16947)
@@ -335,14 +335,9 @@
     atsi++;
   if (ntohl (atsi->type) == GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR)
   {
-    static int once;
-
-    if (!once)
-    {
-      once = 1;
-      GNUNET_break (0);
-    }
-    /* how can we not have latency data? */
+    /* We sometime have no latency data, i.e. if the address came from 
+       peerinfo and we never had a chance to play transport-level 
+       PING/PONG yet. Assume 1s in that case. */
     return GNUNET_TIME_UNIT_SECONDS;
   }
   return GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS,




reply via email to

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