changes
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 29 Aug 2012 09:14:49 +0000 (09:14 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 29 Aug 2012 09:14:49 +0000 (09:14 +0000)
src/transport/plugin_transport_http_client.c
src/transport/test_plugin_transport.c

index 4e5449e63c9ab48a0355e2d448ba109a6e5d8127..1f08d7bbbaf27e6ffc070697ae31d848a39dc676 100644 (file)
@@ -480,7 +480,7 @@ client_disconnect (struct Session *s)
   if (s->client_put != NULL)
   {
     GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,
-                     "Session %p/connection %p: disconnecting PUT connectionto peer `%s'\n",
+                     "Session %p/connection %p: disconnecting PUT connection to peer `%s'\n",
                      s, s->client_put, GNUNET_i2s (&s->target));
 
     /* remove curl handle from multi handle */
index 3bd0b7cb064743c22d492c4d724e9d6f2f91a966..f195d036902149c8c70aa6e1e44924bdeb6cd969 100644 (file)
@@ -41,7 +41,7 @@
  * How long until we give up on transmitting the message?
  */
 #define WAIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5)
-#define TIMEOUT GNUNET_TIME_relative_multiply (WAIT, 3)
+#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
 
 /**
  * Our public key.
@@ -197,6 +197,13 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
       GNUNET_SCHEDULER_cancel (timeout_wait);
       timeout_wait = GNUNET_SCHEDULER_NO_TASK;
   }
+
+  if (NULL != cls)
+  {
+      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                _("Test took too long to execute, timeout .... \n"));
+  }
+
   if (NULL != libname)
   {
     if (NULL != api)
@@ -457,7 +464,7 @@ run (void *cls, char *const *args, const char *cfgfile,
   char *plugin;
   char *sep;
 
-  timeout_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, end_badly, NULL);
+  timeout_task = GNUNET_SCHEDULER_add_delayed (TIMEOUT, end_badly, &ok);
 
   cfg = c;
   /* parse configuration */