(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 26 May 2010 12:01:48 +0000 (12:01 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 26 May 2010 12:01:48 +0000 (12:01 +0000)
src/transport/test_plugin_transport_http.c

index 2e540bd5406f2ede57f0af58cc012cd8b0afb1a2..572e6182bf3b993aaeda577427fe3f7dc1257a94 100644 (file)
@@ -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;