From: Matthias Wachs Date: Wed, 10 Jul 2013 12:45:22 +0000 (+0000) Subject: session report in http server X-Git-Tag: initial-import-from-subversion-38251~8412 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=114bc2dd1ed07e67fba0fae4e092afee681e5d54;p=oweals%2Fgnunet.git session report in http server --- diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index 365a3c2bd..1f5da48a2 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c @@ -25,9 +25,11 @@ */ #if BUILD_HTTPS +#define PLUGIN_NAME "https_client" #define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_https_client_init #define LIBGNUNET_PLUGIN_TRANSPORT_DONE libgnunet_plugin_transport_https_client_done #else +#define PLUGIN_NAME "http_client" #define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_http_client_init #define LIBGNUNET_PLUGIN_TRANSPORT_DONE libgnunet_plugin_transport_http_client_done #endif diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 2cd6eb660..b5b27aa0f 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c @@ -33,10 +33,14 @@ #include "plugin_transport_http_common.h" #include + + #if BUILD_HTTPS +#define PLUGIN_NAME "https_server" #define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_https_server_init #define LIBGNUNET_PLUGIN_TRANSPORT_DONE libgnunet_plugin_transport_https_server_done #else +#define PLUGIN_NAME "http_server" #define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_http_server_init #define LIBGNUNET_PLUGIN_TRANSPORT_DONE libgnunet_plugin_transport_http_server_done #endif @@ -1150,7 +1154,10 @@ server_lookup_connection (struct HTTP_Server_Plugin *plugin, s->server_recv = sc; if ((NULL != s->server_send) && (NULL != s->server_recv)) + { s->connect_in_progress = GNUNET_NO; /* PUT and GET are connected */ + plugin->env->session_start (NULL, &s->target, PLUGIN_NAME,s->addr, s->addrlen,s, NULL, 0); + } #if MHD_VERSION >= 0x00090E00 if ((NULL == s->server_recv) || (NULL == s->server_send))