diff options
Diffstat (limited to 'src/dht/dht_api.c')
-rw-r--r-- | src/dht/dht_api.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dht/dht_api.c b/src/dht/dht_api.c index 4c653e105..7674347e4 100644 --- a/src/dht/dht_api.c +++ b/src/dht/dht_api.c | |||
@@ -311,6 +311,9 @@ do_disconnect (struct GNUNET_DHT_Handle *handle) | |||
311 | if (NULL != handle->th) | 311 | if (NULL != handle->th) |
312 | GNUNET_CLIENT_notify_transmit_ready_cancel (handle->th); | 312 | GNUNET_CLIENT_notify_transmit_ready_cancel (handle->th); |
313 | handle->th = NULL; | 313 | handle->th = NULL; |
314 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
315 | "Disconnecting from DHT service, will try to reconnect in %llu ms\n", | ||
316 | (unsigned long long) handle->retry_time.rel_value); | ||
314 | GNUNET_CLIENT_disconnect (handle->client, GNUNET_NO); | 317 | GNUNET_CLIENT_disconnect (handle->client, GNUNET_NO); |
315 | handle->client = NULL; | 318 | handle->client = NULL; |
316 | handle->reconnect_task = | 319 | handle->reconnect_task = |
@@ -335,6 +338,8 @@ process_pending_messages (struct GNUNET_DHT_Handle *handle) | |||
335 | 338 | ||
336 | if (handle->client == NULL) | 339 | if (handle->client == NULL) |
337 | { | 340 | { |
341 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
342 | "process_pending_messages called, but client is null, reconnecting\n"); | ||
338 | do_disconnect (handle); | 343 | do_disconnect (handle); |
339 | return; | 344 | return; |
340 | } | 345 | } |
@@ -350,6 +355,8 @@ process_pending_messages (struct GNUNET_DHT_Handle *handle) | |||
350 | handle); | 355 | handle); |
351 | if (NULL != handle->th) | 356 | if (NULL != handle->th) |
352 | return; | 357 | return; |
358 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
359 | "notify_transmit_ready returned NULL, reconnecting\n"); | ||
353 | do_disconnect (handle); | 360 | do_disconnect (handle); |
354 | } | 361 | } |
355 | 362 | ||