From: Bart Polot Date: Tue, 4 Oct 2011 13:13:53 +0000 (+0000) Subject: Fixed core quota, added logging of error messages at connection setup X-Git-Tag: initial-import-from-subversion-38251~16822 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=337aecb98cfba8c2bef1848c7c3e6816779fc96c;p=oweals%2Fgnunet.git Fixed core quota, added logging of error messages at connection setup --- 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); + } + }