[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10653 - in gnunet: . src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10653 - in gnunet: . src/transport |
Date: |
Thu, 18 Mar 2010 15:33:34 +0100 |
Author: grothoff
Date: 2010-03-18 15:33:34 +0100 (Thu, 18 Mar 2010)
New Revision: 10653
Modified:
gnunet/TODO
gnunet/src/transport/plugin_transport_udp.c
gnunet/src/transport/test_transport_api_udp_peer1.conf
gnunet/src/transport/test_transport_api_udp_peer2.conf
Log:
fix
Modified: gnunet/TODO
===================================================================
--- gnunet/TODO 2010-03-18 14:28:44 UTC (rev 10652)
+++ gnunet/TODO 2010-03-18 14:33:34 UTC (rev 10653)
@@ -15,7 +15,6 @@
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
Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2010-03-18 14:28:44 UTC (rev
10652)
+++ gnunet/src/transport/plugin_transport_udp.c 2010-03-18 14:33:34 UTC (rev
10653)
@@ -42,17 +42,12 @@
#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?
*/
#define HOSTNAME_RESOLVE_TIMEOUT GNUNET_TIME_relative_multiply
(GNUNET_TIME_UNIT_SECONDS, 5)
@@ -760,10 +755,10 @@
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);
Modified: gnunet/src/transport/test_transport_api_udp_peer1.conf
===================================================================
--- gnunet/src/transport/test_transport_api_udp_peer1.conf 2010-03-18
14:28:44 UTC (rev 10652)
+++ gnunet/src/transport/test_transport_api_udp_peer1.conf 2010-03-18
14:33:34 UTC (rev 10653)
@@ -71,7 +71,7 @@
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]
Modified: gnunet/src/transport/test_transport_api_udp_peer2.conf
===================================================================
--- gnunet/src/transport/test_transport_api_udp_peer2.conf 2010-03-18
14:28:44 UTC (rev 10652)
+++ gnunet/src/transport/test_transport_api_udp_peer2.conf 2010-03-18
14:33:34 UTC (rev 10653)
@@ -72,7 +72,7 @@
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/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10653 - in gnunet: . src/transport,
gnunet <=