const char *upload_data, size_t * upload_data_size,
void **httpSessionCache)
{
-
struct Plugin *plugin = cls;
struct ServerConnection *sc = *httpSessionCache;
- struct Session *s = NULL;
-
- int res = MHD_YES;
+ struct Session *s;
struct MHD_Response *response;
+ int res = MHD_YES;
GNUNET_assert (cls != NULL);
/* new connection */
};
-static int cont_calls;
/**
* We have been notified that our readset has something to read. We don't
if (NULL != udpw->cont)
{
udpw->cont (udpw->cont_cls, &udpw->session->target,result);
- GNUNET_assert (cont_calls > 0);
- cont_calls --;
}
}
if (NULL != s->frag_ctx->cont)
{
s->frag_ctx->cont (s->frag_ctx->cont_cls, &s->target, GNUNET_SYSERR);
- cont_calls --;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Calling continuation for fragemented message to `%s' with result SYSERR\n",
GNUNET_i2s (&s->target));
udpw->udp = (char *) &udpw[1];
udpw->msg_size = msg_len;
- cont_calls++;
udpw->cont = &send_next_fragment;
udpw->cont_cls = udpw;
udpw->timeout = frag_ctx->timeout;
udpw->cont = cont;
udpw->cont_cls = cont_cls;
udpw->frag_ctx = NULL;
- if (NULL != udpw->cont)
- {
- cont_calls ++;
- }
memcpy (udpw->udp, udp, sizeof (struct UDPMessage));
memcpy (&udpw->udp[sizeof (struct UDPMessage)], msgbuf, msgbuf_size);
&enqueue_fragment,
frag_ctx);
- if (NULL != frag_ctx->cont)
- cont_calls ++;
s->frag_ctx = frag_ctx;
}
"Calling continuation for fragmented message to `%s' with result %s\n",
GNUNET_i2s (&s->target), "OK");
s->frag_ctx->cont (s->frag_ctx->cont_cls, &udp_ack->sender, GNUNET_OK);
- cont_calls --;
}
GNUNET_free (s->frag_ctx);
plugin->nat = NULL;
GNUNET_free (plugin);
GNUNET_free (api);
- GNUNET_assert (0 == cont_calls);
return NULL;
}