From: Christian Grothoff Date: Sun, 12 Jul 2009 22:30:46 +0000 (+0000) Subject: fixes X-Git-Tag: initial-import-from-subversion-38251~23701 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0269ad6369a9552b371c88acc449ad7cd07b03da;p=oweals%2Fgnunet.git fixes --- diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index d7bd13317..3bef28343 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -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; diff --git a/src/transport/test_transport_api_peer1.conf b/src/transport/test_transport_api_peer1.conf index 46d7ceec9..82109356e 100644 --- a/src/transport/test_transport_api_peer1.conf +++ b/src/transport/test_transport_api_peer1.conf @@ -8,6 +8,7 @@ PORT = 12364 [transport] PORT = 12365 PLUGINS = tcp +# DEBUG = YES [arm] PORT = 12366 diff --git a/src/transport/test_transport_api_peer2.conf b/src/transport/test_transport_api_peer2.conf index f980fbe1b..d1fc2ea63 100644 --- a/src/transport/test_transport_api_peer2.conf +++ b/src/transport/test_transport_api_peer2.conf @@ -8,6 +8,7 @@ PORT = 22364 [transport] PORT = 22365 PLUGINS = tcp +# DEBUG = YES [arm] PORT = 22366