gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r10140 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r10140 - gnunet/src/transport
Date: Mon, 25 Jan 2010 10:20:39 +0100

Author: nevans
Date: 2010-01-25 10:20:39 +0100 (Mon, 25 Jan 2010)
New Revision: 10140

Modified:
   gnunet/src/transport/gnunet-service-transport.c
Log:
why didn't I commit this yesterday?

Modified: gnunet/src/transport/gnunet-service-transport.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport.c     2010-01-25 09:13:46 UTC 
(rev 10139)
+++ gnunet/src/transport/gnunet-service-transport.c     2010-01-25 09:20:39 UTC 
(rev 10140)
@@ -73,7 +73,7 @@
  * Besides, if a single request to an address takes a long time,
  * then the peer is unlikely worthwhile anyway.
  */
-#define HELLO_VERIFICATION_TIMEOUT GNUNET_TIME_relative_multiply 
(GNUNET_TIME_UNIT_SECONDS, 3)
+#define HELLO_VERIFICATION_TIMEOUT GNUNET_TIME_relative_multiply 
(GNUNET_TIME_UNIT_SECONDS, 30)
 
 /**
  * How long will we allow sending of a ping to be delayed?
@@ -1593,7 +1593,7 @@
   struct ValidationAddress *va;
   struct GNUNET_PeerIdentity id;
   struct TransportPongMessage *pong = (struct TransportPongMessage *)message;
-
+  int count = 0;
   unsigned int challenge = ntohl(pong->challenge);
   pos = pending_validations;
   while (pos != NULL)
@@ -1605,14 +1605,15 @@
       if (0 == memcmp (peer, &id, sizeof (struct GNUNET_PeerIdentity)))
         break;
       pos = pos->next;
+      count++;
     }
   if (pos == NULL)
     {
       /* TODO: call statistics (unmatched PONG) */
       GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                   _
-                  ("Received validation response but have no record of any 
validation request for `%4s'. Ignoring.\n"),
-                  GNUNET_i2s (peer));
+                  ("Received validation response but have no record of any 
validation request for `%4s' (out of %d). Ignoring.\n"),
+                  GNUNET_i2s (peer), count);
       return;
     }
   not_done = 0;
@@ -2757,7 +2758,7 @@
   struct TransportClient *prev;
   struct ClientMessageQueueEntry *mqe;
 
-  if (client == NULL) 
+  if (client == NULL)
     return;
 #if DEBUG_TRANSPORT
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG | GNUNET_ERROR_TYPE_BULK,





reply via email to

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