From 337aecb98cfba8c2bef1848c7c3e6816779fc96c Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 4 Oct 2011 13:13:53 +0000 Subject: [PATCH] Fixed core quota, added logging of error messages at connection setup --- src/mesh/test_mesh_small.conf | 2 ++ src/mesh/test_mesh_small_unicast.c | 17 +++++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/mesh/test_mesh_small.conf b/src/mesh/test_mesh_small.conf index df4595289..31d3a2ad8 100644 --- a/src/mesh/test_mesh_small.conf +++ b/src/mesh/test_mesh_small.conf @@ -37,6 +37,8 @@ INTERNAL_ADDRESS = 127.0.0.1 EXTERNAL_ADDRESS = 127.0.0.1 [core] +TOTAL_QUOTA_IN = 1024000 +TOTAL_QUOTA_OUT = 1024000 AUTOSTART = YES PORT = 10003 diff --git a/src/mesh/test_mesh_small_unicast.c b/src/mesh/test_mesh_small_unicast.c index f7247b5f2..3c6f0a0cb 100644 --- a/src/mesh/test_mesh_small_unicast.c +++ b/src/mesh/test_mesh_small_unicast.c @@ -402,13 +402,14 @@ connect_cb (void *cls, const struct GNUNET_PeerIdentity *first, struct GNUNET_TESTING_Daemon *first_daemon, struct GNUNET_TESTING_Daemon *second_daemon, const char *emsg) { - GNUNET_PEER_Id f; - GNUNET_PEER_Id s; +// GNUNET_PEER_Id f; +// GNUNET_PEER_Id s; if (emsg == NULL) + { total_connections++; - f = GNUNET_PEER_intern(first); - s = GNUNET_PEER_intern(second); + /*f = */GNUNET_PEER_intern(first); + /*s = */GNUNET_PEER_intern(second); // GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: New connection!\n"); // GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, // "test: %s (%u)\n", @@ -418,6 +419,14 @@ connect_cb (void *cls, const struct GNUNET_PeerIdentity *first, // "test: %s (%u)\n", // GNUNET_h2s(&second->hashPubKey), // s); + } + else + { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "test: Problem with new connection (%s)\n", + emsg); + } + } -- 2.25.1