aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r--src/transport/plugin_transport_http.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c
index f2bdc90dc..88a147013 100644
--- a/src/transport/plugin_transport_http.c
+++ b/src/transport/plugin_transport_http.c
@@ -1722,7 +1722,8 @@ http_plugin_disconnect (void *cls,
1722 1722
1723 while (ps!=NULL) 1723 while (ps!=NULL)
1724 { 1724 {
1725 1725 /* Telling transport that session is getting disconnected */
1726 plugin->env->session_end(plugin, target, ps);
1726 if (ps->direction==OUTBOUND) 1727 if (ps->direction==OUTBOUND)
1727 { 1728 {
1728 if (ps->send_endpoint!=NULL) 1729 if (ps->send_endpoint!=NULL)
@@ -2152,7 +2153,11 @@ libgnunet_plugin_transport_http_init (void *cls)
2152 unsigned int timeout = (gn_timeout.value) / 1000; 2153 unsigned int timeout = (gn_timeout.value) / 1000;
2153 if ((plugin->http_server_daemon_v4 == NULL) && (plugin->http_server_daemon_v6 == NULL) && (port != 0)) 2154 if ((plugin->http_server_daemon_v4 == NULL) && (plugin->http_server_daemon_v6 == NULL) && (port != 0))
2154 { 2155 {
2155 plugin->http_server_daemon_v6 = MHD_start_daemon (MHD_USE_IPv6 | MHD_USE_DEBUG, 2156 plugin->http_server_daemon_v6 = MHD_start_daemon (
2157#if DEBUG_HTTP
2158 MHD_USE_DEBUG |
2159#endif
2160 MHD_USE_IPv6,
2156 port, 2161 port,
2157 &mhd_accept_cb, 2162 &mhd_accept_cb,
2158 plugin , &mdh_access_cb, plugin, 2163 plugin , &mdh_access_cb, plugin,
@@ -2162,7 +2167,11 @@ libgnunet_plugin_transport_http_init (void *cls)
2162 MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t) (16 * 1024), 2167 MHD_OPTION_CONNECTION_MEMORY_LIMIT, (size_t) (16 * 1024),
2163 MHD_OPTION_NOTIFY_COMPLETED, &mhd_termination_cb, NULL, 2168 MHD_OPTION_NOTIFY_COMPLETED, &mhd_termination_cb, NULL,
2164 MHD_OPTION_END); 2169 MHD_OPTION_END);
2165 plugin->http_server_daemon_v4 = MHD_start_daemon (MHD_NO_FLAG | MHD_USE_DEBUG, 2170 plugin->http_server_daemon_v4 = MHD_start_daemon (
2171#if DEBUG_HTTP
2172 MHD_USE_DEBUG |
2173#endif
2174 MHD_NO_FLAG,
2166 port, 2175 port,
2167 &mhd_accept_cb, 2176 &mhd_accept_cb,
2168 plugin , &mdh_access_cb, plugin, 2177 plugin , &mdh_access_cb, plugin,