diff options
Diffstat (limited to 'src/dht/dht_api.c')
-rw-r--r-- | src/dht/dht_api.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index 41096b2f2..1030b7999 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c | |||
@@ -368,7 +368,7 @@ do_disconnect (struct GNUNET_DHT_Handle *handle) | |||
368 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 368 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
369 | "Disconnecting from DHT service, will try to reconnect in %llu ms\n", | 369 | "Disconnecting from DHT service, will try to reconnect in %llu ms\n", |
370 | (unsigned long long) handle->retry_time.rel_value); | 370 | (unsigned long long) handle->retry_time.rel_value); |
371 | GNUNET_CLIENT_disconnect (handle->client, GNUNET_NO); | 371 | GNUNET_CLIENT_disconnect (handle->client); |
372 | handle->client = NULL; | 372 | handle->client = NULL; |
373 | handle->reconnect_task = | 373 | handle->reconnect_task = |
374 | GNUNET_SCHEDULER_add_delayed (handle->retry_time, &try_reconnect, handle); | 374 | GNUNET_SCHEDULER_add_delayed (handle->retry_time, &try_reconnect, handle); |
@@ -701,7 +701,7 @@ GNUNET_DHT_disconnect (struct GNUNET_DHT_Handle *handle) | |||
701 | } | 701 | } |
702 | if (handle->client != NULL) | 702 | if (handle->client != NULL) |
703 | { | 703 | { |
704 | GNUNET_CLIENT_disconnect (handle->client, GNUNET_YES); | 704 | GNUNET_CLIENT_disconnect (handle->client); |
705 | handle->client = NULL; | 705 | handle->client = NULL; |
706 | } | 706 | } |
707 | if (handle->reconnect_task != GNUNET_SCHEDULER_NO_TASK) | 707 | if (handle->reconnect_task != GNUNET_SCHEDULER_NO_TASK) |
@@ -735,7 +735,11 @@ timeout_put_request (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
735 | 735 | ||
736 | 736 | ||
737 | /** | 737 | /** |
738 | * Perform a PUT operation storing data in the DHT. | 738 | * Perform a PUT operation storing data in the DHT. FIXME: we should |
739 | * change the protocol to get a confirmation for the PUT from the DHT | ||
740 | * and call 'cont' only after getting the confirmation; otherwise, the | ||
741 | * client has no good way of telling if the 'PUT' message actually got | ||
742 | * to the DHT service! | ||
739 | * | 743 | * |
740 | * @param handle handle to DHT service | 744 | * @param handle handle to DHT service |
741 | * @param key the key to store under | 745 | * @param key the key to store under |