From fba1e6b6ec513a1718a19e465ece2f04399dd9df Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 1 Jun 2011 16:11:22 +0000 Subject: [PATCH] dmsg --- src/util/client.c | 6 +++++- src/util/connection.c | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/util/client.c b/src/util/client.c index 3dabd8414..6c6db02fe 100644 --- a/src/util/client.c +++ b/src/util/client.c @@ -831,6 +831,10 @@ client_notify (void *cls, size_t size, void *buf) return 0; } /* auto-retry */ + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "Failed to connect to `%s', automatically trying again.\n", + th->sock->service_name); + GNUNET_CONNECTION_destroy (th->sock->sock, GNUNET_NO); th->sock->sock = do_connect (th->sock->service_name, th->sock->cfg, @@ -964,7 +968,7 @@ transmit_for_response (void *cls, size_t size, void *buf) msize = ntohs (tc->hdr->size); if (NULL == buf) { -#if DEBUG_CLIENT +#if DEBUG_CLIENT GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, _("Could not submit request, not expecting to receive a response.\n")); #endif diff --git a/src/util/connection.c b/src/util/connection.c index d7f956d68..28898ab18 100644 --- a/src/util/connection.c +++ b/src/util/connection.c @@ -1421,8 +1421,9 @@ connect_error (void *cls, GNUNET_CONNECTION_TransmitReadyNotify notify; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Transmission request of size %u fails (%s/%u), connection failed (%p).\n", + "Transmission request of size %u fails (%d/%s/%u), connection failed (%p).\n", sock->nth.notify_size, + (sock->sock != NULL) ? *(int*) sock->sock : -1, sock->hostname, sock->port, sock); -- 2.25.1