From: Matthias Wachs Date: Wed, 26 May 2010 12:01:48 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~21556 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5275b847804c7f918ec4a49750fc6cb8e6b7ad55;p=oweals%2Fgnunet.git --- diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index 2e540bd54..572e6182b 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c @@ -138,7 +138,8 @@ receive (void *cls, const char *sender_address, uint16_t sender_address_len) { - /* do nothing */ + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Testcase recieved new message from peer `%s' with type %u and length %u\n", GNUNET_i2s(peer),ntohs(message->type),ntohs(message->size)); + return GNUNET_TIME_UNIT_ZERO; } @@ -241,7 +242,7 @@ task_timeout (void *cls, if (0 != (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN)) return; - if ( timeout_count > 15 ) + if ( timeout_count > 1 ) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Testcase timeout\n", timeout_count); fail = GNUNET_YES; @@ -535,7 +536,7 @@ run (void *cls, return; } - ti_timeout = GNUNET_SCHEDULER_add_now (sched, &task_timeout, NULL); + ti_timeout = GNUNET_SCHEDULER_add_delayed (sched, STAT_INTERVALL, &task_timeout, NULL); //ti_download = GNUNET_SCHEDULER_add_now (sched, &task_download, NULL); return;