From: Christian Grothoff Date: Fri, 2 Jul 2010 10:34:51 +0000 (+0000) Subject: sparcbot needs really large timeout X-Git-Tag: initial-import-from-subversion-38251~21085 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=31d23cb63c1b632c533be715c526d6a37fca1526;p=oweals%2Fgnunet.git sparcbot needs really large timeout --- diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c index d029e563f..98f667682 100644 --- a/src/transport/test_transport_api.c +++ b/src/transport/test_transport_api.c @@ -45,7 +45,12 @@ /** * How long until we give up on transmitting the message? */ -#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 180) +#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 300) + +/** + * How long until we give up on transmitting the message? + */ +#define TIMEOUT_TRANSMIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30) #define MTYPE 12345 @@ -176,6 +181,11 @@ notify_connect (void *cls, { if (cls == &p1) { + GNUNET_SCHEDULER_cancel (sched, die_task); + die_task = GNUNET_SCHEDULER_add_delayed (sched, + TIMEOUT_TRANSMIT, + &end_badly, NULL); + GNUNET_TRANSPORT_notify_transmit_ready (p1.th, &p2.id, 256, 0, TIMEOUT, ¬ify_ready,