aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-service-testbed.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-11-09 16:16:58 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-11-09 16:16:58 +0000
commitbb27c2580a1ff727a3d23c402e93b1e3f7bce004 (patch)
treec68a5956b0ba45ad8458d73536d16d5d50a89d09 /src/testbed/gnunet-service-testbed.c
parent7dcb3d8558f23a197b357874917c66cfe9d9cca4 (diff)
downloadgnunet-bb27c2580a1ff727a3d23c402e93b1e3f7bce004.tar.gz
gnunet-bb27c2580a1ff727a3d23c402e93b1e3f7bce004.zip
- send HELLOs aggressively
Diffstat (limited to 'src/testbed/gnunet-service-testbed.c')
-rw-r--r--src/testbed/gnunet-service-testbed.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/testbed/gnunet-service-testbed.c b/src/testbed/gnunet-service-testbed.c
index cab910a37..62163ca36 100644
--- a/src/testbed/gnunet-service-testbed.c
+++ b/src/testbed/gnunet-service-testbed.c
@@ -2928,7 +2928,7 @@ occ_hello_sent_cb (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
2928 GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == occ->send_hello_task); 2928 GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == occ->send_hello_task);
2929 if (GNUNET_SCHEDULER_REASON_TIMEOUT == tc->reason) 2929 if (GNUNET_SCHEDULER_REASON_TIMEOUT == tc->reason)
2930 { 2930 {
2931 GNUNET_break (0); 2931 //GNUNET_break (0);
2932 goto schedule_send_hello; 2932 goto schedule_send_hello;
2933 } 2933 }
2934 if (GNUNET_SCHEDULER_REASON_READ_READY != tc->reason) 2934 if (GNUNET_SCHEDULER_REASON_READ_READY != tc->reason)
@@ -2947,12 +2947,7 @@ occ_hello_sent_cb (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
2947 schedule_send_hello: 2947 schedule_send_hello:
2948 GNUNET_free_non_null (occ->emsg); 2948 GNUNET_free_non_null (occ->emsg);
2949 occ->emsg = GNUNET_strdup ("Timeout while offering HELLO to other peer"); 2949 occ->emsg = GNUNET_strdup ("Timeout while offering HELLO to other peer");
2950 occ->send_hello_task = 2950 occ->send_hello_task = GNUNET_SCHEDULER_add_now (&send_hello, occ);
2951 GNUNET_SCHEDULER_add_delayed
2952 (GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS,
2953 100 + GNUNET_CRYPTO_random_u32
2954 (GNUNET_CRYPTO_QUALITY_WEAK, 500)),
2955 &send_hello, occ);
2956} 2951}
2957 2952
2958 2953