sparcbot needs really large timeout
authorChristian Grothoff <christian@grothoff.org>
Fri, 2 Jul 2010 10:34:51 +0000 (10:34 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 2 Jul 2010 10:34:51 +0000 (10:34 +0000)
src/transport/test_transport_api.c

index d029e563f5206ef63636c8cea6b2a50e9db449f1..98f667682d712eda98cdbbd7bee1a127beb6bd33 100644 (file)
 /**
  * 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, &notify_ready,