diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-10-04 13:13:53 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-10-04 13:13:53 +0000 |
commit | 337aecb98cfba8c2bef1848c7c3e6816779fc96c (patch) | |
tree | 45fcb166d58733b735e787c026fbc37b72559ceb /src/mesh | |
parent | 6f1ee686b5e97dd9ae5acc091870bc3bfcaa6ab1 (diff) | |
download | gnunet-337aecb98cfba8c2bef1848c7c3e6816779fc96c.tar.gz gnunet-337aecb98cfba8c2bef1848c7c3e6816779fc96c.zip |
Fixed core quota, added logging of error messages at connection setup
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/test_mesh_small.conf | 2 | ||||
-rw-r--r-- | 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 | |||
37 | EXTERNAL_ADDRESS = 127.0.0.1 | 37 | EXTERNAL_ADDRESS = 127.0.0.1 |
38 | 38 | ||
39 | [core] | 39 | [core] |
40 | TOTAL_QUOTA_IN = 1024000 | ||
41 | TOTAL_QUOTA_OUT = 1024000 | ||
40 | AUTOSTART = YES | 42 | AUTOSTART = YES |
41 | PORT = 10003 | 43 | PORT = 10003 |
42 | 44 | ||
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, | |||
402 | struct GNUNET_TESTING_Daemon *first_daemon, | 402 | struct GNUNET_TESTING_Daemon *first_daemon, |
403 | struct GNUNET_TESTING_Daemon *second_daemon, const char *emsg) | 403 | struct GNUNET_TESTING_Daemon *second_daemon, const char *emsg) |
404 | { | 404 | { |
405 | GNUNET_PEER_Id f; | 405 | // GNUNET_PEER_Id f; |
406 | GNUNET_PEER_Id s; | 406 | // GNUNET_PEER_Id s; |
407 | 407 | ||
408 | if (emsg == NULL) | 408 | if (emsg == NULL) |
409 | { | ||
409 | total_connections++; | 410 | total_connections++; |
410 | f = GNUNET_PEER_intern(first); | 411 | /*f = */GNUNET_PEER_intern(first); |
411 | s = GNUNET_PEER_intern(second); | 412 | /*s = */GNUNET_PEER_intern(second); |
412 | // GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: New connection!\n"); | 413 | // GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test: New connection!\n"); |
413 | // GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 414 | // GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
414 | // "test: %s (%u)\n", | 415 | // "test: %s (%u)\n", |
@@ -418,6 +419,14 @@ connect_cb (void *cls, const struct GNUNET_PeerIdentity *first, | |||
418 | // "test: %s (%u)\n", | 419 | // "test: %s (%u)\n", |
419 | // GNUNET_h2s(&second->hashPubKey), | 420 | // GNUNET_h2s(&second->hashPubKey), |
420 | // s); | 421 | // s); |
422 | } | ||
423 | else | ||
424 | { | ||
425 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
426 | "test: Problem with new connection (%s)\n", | ||
427 | emsg); | ||
428 | } | ||
429 | |||
421 | } | 430 | } |
422 | 431 | ||
423 | 432 | ||