fixes
authorChristian Grothoff <christian@grothoff.org>
Sun, 12 Jul 2009 22:30:46 +0000 (22:30 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 12 Jul 2009 22:30:46 +0000 (22:30 +0000)
src/transport/gnunet-service-transport.c
src/transport/test_transport_api_peer1.conf
src/transport/test_transport_api_peer2.conf

index d7bd13317ca13c616109cb1c462b556feb800e23..3bef28343ca5d81dcd13b979eca7d24ccea2a396 100644 (file)
@@ -1410,6 +1410,7 @@ cleanup_validation (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   struct GNUNET_TIME_Absolute now;
   struct GNUNET_HELLO_Message *hello;
   struct GNUNET_PeerIdentity pid;
+  struct NeighbourList *n;
 
 #if DEBUG_TRANSPORT
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG | GNUNET_ERROR_TYPE_BULK,
@@ -1439,6 +1440,9 @@ cleanup_validation (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
                       "HELLO", GNUNET_i2s (&pid));
 #endif
           GNUNET_PEERINFO_add_peer (cfg, sched, &pid, hello);
+         n = find_neighbour (&pid);
+         if (NULL != n)
+           try_transmission_to_peer (n);           
           GNUNET_free (hello);
           while (NULL != (va = pos->addresses))
             {
@@ -1519,7 +1523,8 @@ plugin_env_notify_validation (void *cls,
       /* TODO: call statistics (unmatched PONG) */
       GNUNET_log (GNUNET_ERROR_TYPE_INFO,
                   _
-                  ("Received validation response but have no record of a matching validation request. Ignoring.\n"));
+                  ("Received validation response but have no record of any validation request for `%4s'. Ignoring.\n"),
+                 GNUNET_i2s(peer));
       return;
     }
   all_done = GNUNET_YES;
index 46d7ceec9cd662b071e5219ea9aabcf479cade25..82109356e629d87e5d8aaaab24be4d2738da3d81 100644 (file)
@@ -8,6 +8,7 @@ PORT = 12364
 [transport]
 PORT = 12365
 PLUGINS = tcp
+# DEBUG = YES
 
 [arm]
 PORT = 12366
index f980fbe1bebe473d36bb6a3d479caec9e3593bd0..d1fc2ea63eaf67404160030d7eedad52b40abfb4 100644 (file)
@@ -8,6 +8,7 @@ PORT = 22364
 [transport]
 PORT = 22365
 PLUGINS = tcp
+# DEBUG = YES
 
 [arm]
 PORT = 22366