#include <curl/curl.h>
-#define DEBUG_CURL GNUNET_YES
+#define DEBUG_CURL GNUNET_NO
#define DEBUG_HTTP GNUNET_NO
#define INBOUND GNUNET_NO
pc->plugin->env->receive (ps->peercontext->plugin->env->cls,
&pc->identity,
- message, 1, NULL,
- //message, 1, ps,
+ message, 1, ps,
ps->addr,
ps->addrlen);
}
pc->plugin->env->receive (pc->plugin->env->cls,
&pc->identity,
- message, 1, NULL,
- //message, 1, ps,
+ message, 1, ps,
ps->addr,
ps->addrlen);
}
ps = get_Session(plugin, pc, addr, addr_len);
if (ps==NULL)
{
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"RECV: CREATING NEW SESSION %s\n",http_plugin_address_to_string(NULL, addr, addr_len));
ps = GNUNET_malloc(sizeof (struct Session));
ps->addr = GNUNET_malloc(addr_len);
memcpy(ps->addr,addr,addr_len);
ps->url = create_url (plugin, ps->addr, ps->addrlen);
GNUNET_CONTAINER_DLL_insert(pc->head,pc->tail,ps);
}
- else
- {
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"RECV: SESSION CONTEXT FOUND\n");
- }
*httpSessionCache = ps;
if (ps->msgtok==NULL)
response = MHD_create_response_from_callback(-1,32 * 1024, &server_read_callback, ps, NULL);
res = MHD_queue_response (mhd_connection, MHD_HTTP_OK, response);
MHD_destroy_response (response);
-
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"HTTP Daemon has new an incoming `%s' request from peer `%s' (`%s')\n",
- method,
- GNUNET_i2s(&pc->identity),
- http_plugin_address_to_string(NULL, ps->addr, ps->addrlen));
return res;
}
return MHD_NO;
size_t len = size * nmemb;
long http_result = 0;
int res;
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Connection %X: GET HEADER FUNC\n",ps);
/* Getting last http result code */
if (ps->recv_connected==GNUNET_NO)
{
ps->send_active = GNUNET_NO;
ps=ps->next;
}
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"All connections to peer `%s' terminated\n", GNUNET_i2s(target));
}