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) )
* @return the message queue, NULL on error
*/
struct GNUNET_MQ_Handle *
-GNUNET_CLIENT_connecT (const struct GNUNET_CONFIGURATION_Handle *cfg,
+GNUNET_CLIENT_connect (const struct GNUNET_CONFIGURATION_Handle *cfg,
const char *service_name,
const struct GNUNET_MQ_MessageHandler *handlers,
GNUNET_MQ_ErrorHandler error_handler,