fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 18 Mar 2010 14:33:34 +0000 (14:33 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 18 Mar 2010 14:33:34 +0000 (14:33 +0000)
TODO
src/transport/plugin_transport_udp.c
src/transport/test_transport_api_udp_peer1.conf
src/transport/test_transport_api_udp_peer2.conf

diff --git a/TODO b/TODO
index 41c8da6851abee963e5452133c6660fe7dd6666f..adc41743dba5b7520cf4082638e6a77c7d728ea6 100644 (file)
--- a/TODO
+++ b/TODO
@@ -15,7 +15,6 @@ away), in order in which they will likely be done:
 
 0.9.0pre0:
 * TRANSPORT:
-  - core dump / jump to nowhere (valgrind) in udp test in transports
   - TCP not used bi-directionally (especially important also for PONG!)
     Need a way for plugin to tell to service that it can *reliably* transmit
     PONGs.  Need *good* way to ensure only one (plugin) session is active at 
index 3d57c09a84ee3ab6c2d818e30308a64d408b0960..739716b17d7b6724b2e09bff195caa5a7b8129d7 100644 (file)
 
 #define DEBUG_UDP GNUNET_NO
 
-/*
+/**
  * Transport cost to peer, always 1 for UDP (direct connection)
  */
 #define UDP_DIRECT_DISTANCE 1
 
-/**
- * Handle for request of hostname resolution, non-NULL if pending.
- */
-static struct GNUNET_RESOLVER_RequestHandle *hostname_dns;
-
 /**
  * How long until we give up on transmitting the welcome message?
  */
@@ -760,10 +755,10 @@ libgnunet_plugin_transport_udp_done (void *cls)
   struct Plugin *plugin = api->cls;
 
   udp_transport_server_stop (plugin);
-  if (NULL != hostname_dns)
+  if (NULL != plugin->hostname_dns)
     {
-      GNUNET_RESOLVER_request_cancel (hostname_dns);
-      hostname_dns = NULL;
+      GNUNET_RESOLVER_request_cancel (plugin->hostname_dns);
+      plugin->hostname_dns = NULL;
     }
   GNUNET_SERVICE_stop (plugin->service);
 
index a62f153d93a169fff97d1bdf9f7ea02d9860902d..e33b5de9a4d0166b72e50f40ca7e0880f0783cc3 100644 (file)
@@ -71,7 +71,7 @@ CONFIG = $DEFAULTCONFIG
 HOME = $SERVICEHOME
 HOSTNAME = localhost
 PORT = 12365
-PREFIX = valgrind --track-origins=yes --leak-check=full --log-file=valgrind_udp_peer1.log
+#PREFIX = valgrind --track-origins=yes --leak-check=full --log-file=valgrind_udp_peer1.log
 #PREFIX = xterm -e xterm -T transport -e gdb --args 
 
 [peerinfo]
index bf14f16a3b38db46909faeabf685d4d5b3db46fc..f10aedd1f391fd56870a441b9b8afe6ddc6d5465 100644 (file)
@@ -72,7 +72,7 @@ CONFIG = $DEFAULTCONFIG
 HOME = $SERVICEHOME
 HOSTNAME = localhost
 PORT = 22365
-PREFIX = valgrind --track-origins=yes --leak-check=full --log-file=valgrind_udp_peer2.log
+#PREFIX = valgrind --track-origins=yes --leak-check=full --log-file=valgrind_udp_peer2.log
 
 [peerinfo]
 TRUST = $SERVICEHOME/data/credit/