diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-15 15:55:16 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-09-15 15:55:16 +0000 |
commit | 0099368ffbacff2e93e321f1007faaf095c84016 (patch) | |
tree | 609c89af3f6f3043ca2c1303f62d611f915fd396 /src/transport/plugin_transport_http_server.c | |
parent | 4878053408a3681dca18b6a264d2b6ec719e79b0 (diff) | |
download | gnunet-0099368ffbacff2e93e321f1007faaf095c84016.tar.gz gnunet-0099368ffbacff2e93e321f1007faaf095c84016.zip |
fix
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 9f10958c5..eec8939c7 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c | |||
@@ -232,16 +232,16 @@ server_access_cb (void *cls, struct MHD_Connection *mhd_connection, | |||
232 | const char *upload_data, size_t * upload_data_size, | 232 | const char *upload_data, size_t * upload_data_size, |
233 | void **httpSessionCache) | 233 | void **httpSessionCache) |
234 | { | 234 | { |
235 | //struct Plugin *plugin = cls; | 235 | struct Plugin *plugin = cls; |
236 | struct Session *s = *httpSessionCache; | 236 | struct Session *s = *httpSessionCache; |
237 | int res = MHD_YES; | 237 | int res = MHD_YES; |
238 | //struct MHD_Response *response; | 238 | struct MHD_Response *response; |
239 | 239 | ||
240 | GNUNET_assert (cls != NULL); | 240 | GNUNET_assert (cls != NULL); |
241 | /* new connection */ | 241 | /* new connection */ |
242 | if (s == NULL) | 242 | if (s == NULL) |
243 | { | 243 | { |
244 | #if 0 | 244 | |
245 | uint32_t tag; | 245 | uint32_t tag; |
246 | const union MHD_ConnectionInfo *conn_info; | 246 | const union MHD_ConnectionInfo *conn_info; |
247 | size_t addrlen; | 247 | size_t addrlen; |
@@ -333,7 +333,7 @@ server_access_cb (void *cls, struct MHD_Connection *mhd_connection, | |||
333 | GNUNET_CONTAINER_DLL_remove(plugin->server_semi_head, plugin->server_semi_tail, s); | 333 | GNUNET_CONTAINER_DLL_remove(plugin->server_semi_head, plugin->server_semi_tail, s); |
334 | GNUNET_CONTAINER_DLL_insert(plugin->head, plugin->tail, s); | 334 | GNUNET_CONTAINER_DLL_insert(plugin->head, plugin->tail, s); |
335 | #if VERBOSE_SERVER | 335 | #if VERBOSE_SERVER |
336 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "server: Found matching semi-session, merging session for peer `%s' `%s'\n", GNUNET_i2s (&target)); | 336 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "server: Found matching semi-session, merging session for peer `%s'\n", GNUNET_i2s (&target)); |
337 | #endif | 337 | #endif |
338 | 338 | ||
339 | goto found; | 339 | goto found; |
@@ -352,7 +352,7 @@ server_access_cb (void *cls, struct MHD_Connection *mhd_connection, | |||
352 | GNUNET_CONTAINER_DLL_remove(plugin->server_semi_head, plugin->server_semi_tail, s); | 352 | GNUNET_CONTAINER_DLL_remove(plugin->server_semi_head, plugin->server_semi_tail, s); |
353 | GNUNET_CONTAINER_DLL_insert(plugin->head, plugin->tail, s); | 353 | GNUNET_CONTAINER_DLL_insert(plugin->head, plugin->tail, s); |
354 | #if VERBOSE_SERVER | 354 | #if VERBOSE_SERVER |
355 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "server: Found matching semi-session, merging session for peer `%s' `%s'\n", GNUNET_i2s (&target)); | 355 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "server: Found matching semi-session, merging session for peer `%s'\n", GNUNET_i2s (&target)); |
356 | #endif | 356 | #endif |
357 | goto found; | 357 | goto found; |
358 | } | 358 | } |
@@ -391,7 +391,6 @@ found: | |||
391 | (*httpSessionCache) = s; | 391 | (*httpSessionCache) = s; |
392 | return MHD_YES; | 392 | return MHD_YES; |
393 | 393 | ||
394 | #endif | ||
395 | } | 394 | } |
396 | 395 | ||
397 | 396 | ||