diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-01 16:11:22 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-01 16:11:22 +0000 |
commit | fba1e6b6ec513a1718a19e465ece2f04399dd9df (patch) | |
tree | cb552ffe05af719492b1a13aaab1ab0ab3700901 /src/util | |
parent | 6d6875ebd9f1c0d576ef379030721882c7015e4d (diff) | |
download | gnunet-fba1e6b6ec513a1718a19e465ece2f04399dd9df.tar.gz gnunet-fba1e6b6ec513a1718a19e465ece2f04399dd9df.zip |
dmsg
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/client.c | 6 | ||||
-rw-r--r-- | 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) | |||
831 | return 0; | 831 | return 0; |
832 | } | 832 | } |
833 | /* auto-retry */ | 833 | /* auto-retry */ |
834 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
835 | "Failed to connect to `%s', automatically trying again.\n", | ||
836 | th->sock->service_name); | ||
837 | |||
834 | GNUNET_CONNECTION_destroy (th->sock->sock, GNUNET_NO); | 838 | GNUNET_CONNECTION_destroy (th->sock->sock, GNUNET_NO); |
835 | th->sock->sock = do_connect (th->sock->service_name, | 839 | th->sock->sock = do_connect (th->sock->service_name, |
836 | th->sock->cfg, | 840 | th->sock->cfg, |
@@ -964,7 +968,7 @@ transmit_for_response (void *cls, size_t size, void *buf) | |||
964 | msize = ntohs (tc->hdr->size); | 968 | msize = ntohs (tc->hdr->size); |
965 | if (NULL == buf) | 969 | if (NULL == buf) |
966 | { | 970 | { |
967 | #if DEBUG_CLIENT | 971 | #if DEBUG_CLIENT |
968 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 972 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
969 | _("Could not submit request, not expecting to receive a response.\n")); | 973 | _("Could not submit request, not expecting to receive a response.\n")); |
970 | #endif | 974 | #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, | |||
1421 | GNUNET_CONNECTION_TransmitReadyNotify notify; | 1421 | GNUNET_CONNECTION_TransmitReadyNotify notify; |
1422 | 1422 | ||
1423 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1423 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1424 | "Transmission request of size %u fails (%s/%u), connection failed (%p).\n", | 1424 | "Transmission request of size %u fails (%d/%s/%u), connection failed (%p).\n", |
1425 | sock->nth.notify_size, | 1425 | sock->nth.notify_size, |
1426 | (sock->sock != NULL) ? *(int*) sock->sock : -1, | ||
1426 | sock->hostname, | 1427 | sock->hostname, |
1427 | sock->port, | 1428 | sock->port, |
1428 | sock); | 1429 | sock); |