aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_server.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-07-10 12:45:22 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-07-10 12:45:22 +0000
commit114bc2dd1ed07e67fba0fae4e092afee681e5d54 (patch)
treef4cbc18f7c56aec6523ed957f39f1a92c143169c /src/transport/plugin_transport_http_server.c
parentf3c3d75c394f6840f13de52d605ae429eed70616 (diff)
downloadgnunet-114bc2dd1ed07e67fba0fae4e092afee681e5d54.tar.gz
gnunet-114bc2dd1ed07e67fba0fae4e092afee681e5d54.zip
session report in http server
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r--src/transport/plugin_transport_http_server.c7
1 files changed, 7 insertions, 0 deletions
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 @@
33#include "plugin_transport_http_common.h" 33#include "plugin_transport_http_common.h"
34#include <microhttpd.h> 34#include <microhttpd.h>
35 35
36
37
36#if BUILD_HTTPS 38#if BUILD_HTTPS
39#define PLUGIN_NAME "https_server"
37#define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_https_server_init 40#define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_https_server_init
38#define LIBGNUNET_PLUGIN_TRANSPORT_DONE libgnunet_plugin_transport_https_server_done 41#define LIBGNUNET_PLUGIN_TRANSPORT_DONE libgnunet_plugin_transport_https_server_done
39#else 42#else
43#define PLUGIN_NAME "http_server"
40#define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_http_server_init 44#define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_http_server_init
41#define LIBGNUNET_PLUGIN_TRANSPORT_DONE libgnunet_plugin_transport_http_server_done 45#define LIBGNUNET_PLUGIN_TRANSPORT_DONE libgnunet_plugin_transport_http_server_done
42#endif 46#endif
@@ -1150,7 +1154,10 @@ server_lookup_connection (struct HTTP_Server_Plugin *plugin,
1150 s->server_recv = sc; 1154 s->server_recv = sc;
1151 1155
1152 if ((NULL != s->server_send) && (NULL != s->server_recv)) 1156 if ((NULL != s->server_send) && (NULL != s->server_recv))
1157 {
1153 s->connect_in_progress = GNUNET_NO; /* PUT and GET are connected */ 1158 s->connect_in_progress = GNUNET_NO; /* PUT and GET are connected */
1159 plugin->env->session_start (NULL, &s->target, PLUGIN_NAME,s->addr, s->addrlen,s, NULL, 0);
1160 }
1154 1161
1155#if MHD_VERSION >= 0x00090E00 1162#if MHD_VERSION >= 0x00090E00
1156 if ((NULL == s->server_recv) || (NULL == s->server_send)) 1163 if ((NULL == s->server_recv) || (NULL == s->server_send))