test case performs better, ping/pong happens correctly now (for me). Still requires...
authorNathan S. Evans <evans@in.tum.de>
Sun, 24 Jan 2010 18:33:23 +0000 (18:33 +0000)
committerNathan S. Evans <evans@in.tum.de>
Sun, 24 Jan 2010 18:33:23 +0000 (18:33 +0000)
src/transport/test_plugin_transport.c
src/transport/test_transport_api.c

index 2248f007e24b03cab2a8cd33033eb17a375bd84b..f9539430e50fa178f40c2e54c7d3f72f4828f974 100644 (file)
@@ -37,7 +37,7 @@
 #include "plugin_transport.h"
 #include "transport.h"
 
-#define VERBOSE GNUNET_NO
+#define VERBOSE GNUNET_YES
 
 /**
  * How long until we give up on transmitting the message?
index e70a34e3e32b36a6a5c1bb01b0d69f95ef1c8004..596261b775695ddbf35963adf65b69124072fc4d 100644 (file)
@@ -33,7 +33,7 @@
 
 #define VERBOSE GNUNET_YES
 
-#define VERBOSE_ARM GNUNET_YES
+#define VERBOSE_ARM GNUNET_NO
 
 #define START_ARM GNUNET_YES
 
@@ -180,8 +180,7 @@ exchange_hello_last (void *cls,
   struct PeerContext *me = cls;
 
   GNUNET_TRANSPORT_get_hello_cancel (p2.th, &exchange_hello_last, me);
-  /* Infinite loop, how was this supposed to work? *sound of nate ripping
-   * hair out* */
+
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Exchanging HELLO with peer (%p)!\n", cls);
   GNUNET_assert (ok >= 3);
@@ -217,6 +216,9 @@ exchange_hello (void *cls,
   GNUNET_assert (GNUNET_OK ==
                  GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *)
                                       message, &me->id));
+
+  GNUNET_TRANSPORT_offer_hello (p2.th, message);
+
   GNUNET_TRANSPORT_get_hello (p2.th, &exchange_hello_last, &p2);
 }