gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r13960 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r13960 - gnunet/src/transport
Date: Tue, 21 Dec 2010 14:13:42 +0100

Author: wachs
Date: 2010-12-21 14:13:42 +0100 (Tue, 21 Dec 2010)
New Revision: 13960

Modified:
   gnunet/src/transport/test_quota_compliance.c
Log:
added fix


Modified: gnunet/src/transport/test_quota_compliance.c
===================================================================
--- gnunet/src/transport/test_quota_compliance.c        2010-12-21 13:08:36 UTC 
(rev 13959)
+++ gnunet/src/transport/test_quota_compliance.c        2010-12-21 13:13:42 UTC 
(rev 13960)
@@ -361,7 +361,7 @@
           const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   static int strike_counter;
-  static int failed_measurement_counter;
+  static int failed_measurement_counter = 1;
   unsigned long long  quota_allowed = 0;
   int delta = 0;
 
@@ -623,6 +623,11 @@
   GNUNET_assert (p->th != NULL);
 }
 
+static size_t
+notify_ready_connect (void *cls, size_t size, void *buf)
+{
+  return 0;
+}
 
 static void
 exchange_hello_last (void *cls,
@@ -638,6 +643,14 @@
   GNUNET_assert (GNUNET_OK ==
                  GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *)
                                       message, &me->id));
+
+  GNUNET_assert(NULL != (transmit_handle = 
GNUNET_TRANSPORT_notify_transmit_ready (p2.th,
+                                          &p1.id,
+                                          sizeof (struct 
GNUNET_MessageHeader), 0,
+                                          TIMEOUT,
+                                          &notify_ready_connect,
+                                          NULL)));
+
   /* both HELLOs exchanged, get ready to test transmission! */
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]