static void
connect_fail_continuation (struct ClientState *cstate)
{
- LOG (GNUNET_ERROR_TYPE_WARNING,
- "Failed to establish connection to `%s', no further addresses to try.\n",
- cstate->service_name);
GNUNET_break (NULL == cstate->ap_head);
GNUNET_break (NULL == cstate->ap_tail);
GNUNET_break (NULL == cstate->dns_active);
// GNUNET_assert (NULL == cstate->proxy_handshake);
cstate->back_off = GNUNET_TIME_STD_BACKOFF (cstate->back_off);
+ LOG (GNUNET_ERROR_TYPE_DEBUG,
+ "Failed to establish connection to `%s', no further addresses to try, will try again in %s.\n",
+ cstate->service_name,
+ GNUNET_STRINGS_relative_time_to_string (cstate->back_off,
+ GNUNET_YES));
cstate->retry_task
= GNUNET_SCHEDULER_add_delayed (cstate->back_off,
&start_connect,
cstate->sock,
&transmit_ready,
cstate);
- if (notify_in_flight)
+ if (notify_in_flight)
GNUNET_MQ_impl_send_in_flight (cstate->mq);
return;
}
{
struct ClientState *cstate = cls;
struct AddressProbe *ap;
-
+
if (NULL == addr)
{
cstate->dns_active = NULL;
{
connect_success_continuation (cstate);
return;
- }
+ }
}
if ( (NULL == cstate->hostname) ||
(0 == cstate->port) )