diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-05 08:37:59 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-05 08:37:59 +0000 |
commit | 6d99e0c26d6cb6dc6e00f21b9a75327f30886f4f (patch) | |
tree | 542a78aa7f59ffd9208f517b14d49e3afeb03061 /src/transport/gnunet-service-transport.c | |
parent | 3b289fa38ecb8b298efb43f3745c216092129fdc (diff) | |
download | gnunet-6d99e0c26d6cb6dc6e00f21b9a75327f30886f4f.tar.gz gnunet-6d99e0c26d6cb6dc6e00f21b9a75327f30886f4f.zip |
use relative timeouts over network
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 269d21f63..6fd17e72d 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -5870,6 +5870,8 @@ transmit_address_to_client (void *cls, const char *address) | |||
5870 | } | 5870 | } |
5871 | else | 5871 | else |
5872 | { | 5872 | { |
5873 | GNUNET_SERVER_transmit_context_append_data (tc, NULL, 0, | ||
5874 | GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY); | ||
5873 | GNUNET_SERVER_transmit_context_run (tc, GNUNET_TIME_UNIT_FOREVER_REL); | 5875 | GNUNET_SERVER_transmit_context_run (tc, GNUNET_TIME_UNIT_FOREVER_REL); |
5874 | } | 5876 | } |
5875 | } | 5877 | } |
@@ -5893,7 +5895,6 @@ handle_address_lookup (void *cls, | |||
5893 | const char *address; | 5895 | const char *address; |
5894 | uint16_t size; | 5896 | uint16_t size; |
5895 | struct GNUNET_SERVER_TransmitContext *tc; | 5897 | struct GNUNET_SERVER_TransmitContext *tc; |
5896 | struct GNUNET_TIME_Absolute timeout; | ||
5897 | struct GNUNET_TIME_Relative rtimeout; | 5898 | struct GNUNET_TIME_Relative rtimeout; |
5898 | int32_t numeric; | 5899 | int32_t numeric; |
5899 | 5900 | ||
@@ -5921,8 +5922,7 @@ handle_address_lookup (void *cls, | |||
5921 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | 5922 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); |
5922 | return; | 5923 | return; |
5923 | } | 5924 | } |
5924 | timeout = GNUNET_TIME_absolute_ntoh (alum->timeout); | 5925 | rtimeout = GNUNET_TIME_relative_ntoh (alum->timeout); |
5925 | rtimeout = GNUNET_TIME_absolute_get_remaining (timeout); | ||
5926 | numeric = ntohl (alum->numeric_only); | 5926 | numeric = ntohl (alum->numeric_only); |
5927 | lsPlugin = find_transport (nameTransport); | 5927 | lsPlugin = find_transport (nameTransport); |
5928 | if (NULL == lsPlugin) | 5928 | if (NULL == lsPlugin) |