char *cbuf;
sh->th = NULL;
+ if ( (size == 0) || (buf == NULL))
+ {
+ GNUNET_CLIENT_disconnect (sh->client, GNUNET_NO);
+ sh->client = NULL;
+ sh->task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
+ &reconnect_task, sh);
+ return 0;
+ }
ret = 0;
cbuf = buf;
while ( (NULL != (p = sh->pending_head)) &&
sh->th = GNUNET_CLIENT_notify_transmit_ready (sh->client,
p->size,
GNUNET_TIME_UNIT_FOREVER_REL,
- GNUNET_YES,
+ GNUNET_NO,
&transmit_message_to_ats, sh);
}
if (((n->session == NULL) && (n->addr == NULL) && (n->addrlen == 0)))
{
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "No address peer for peer `%s'\n",
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "No address for peer `%s'\n",
GNUNET_i2s (&n->id));
transmit_send_continuation (mq, &n->id, GNUNET_SYSERR);
n->transmission_task = GNUNET_SCHEDULER_add_now (&transmission_task, n);