Fixed core quota, added logging of error messages at connection setup
authorBart Polot <bart@net.in.tum.de>
Tue, 4 Oct 2011 13:13:53 +0000 (13:13 +0000)
committerBart Polot <bart@net.in.tum.de>
Tue, 4 Oct 2011 13:13:53 +0000 (13:13 +0000)
src/mesh/test_mesh_small.conf
src/mesh/test_mesh_small_unicast.c

index df459528952da5e1e5396b531379e0b591ac1a20..31d3a2ad8cebb7d29c78e768adaf039fb242e2a4 100644 (file)
@@ -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
 
index f7247b5f28a3427bb2e402c1adf6214ba1e973ad..3c6f0a0cb1b4f6ea6648e32331dd9b4bb57c7bb3 100644 (file)
@@ -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);
+  }
+
 }