From: Matthias Wachs Date: Tue, 15 Jun 2010 15:27:59 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~21372 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=41fd564b9d6067332824f8d9f49fc0f97c883716;p=oweals%2Fgnunet.git --- diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index e88a2d581..dcb778de9 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -39,7 +39,7 @@ #include -#define DEBUG_CURL GNUNET_NO +#define DEBUG_CURL GNUNET_YES #define DEBUG_HTTP GNUNET_NO /** @@ -463,10 +463,13 @@ accessHandlerCallback (void *cls, res = GNUNET_CRYPTO_hash_from_string ( &url[1], &(pi_in.hashPubKey)); if ( GNUNET_SYSERR == res ) { - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Peer has no valid ident\n"); response = MHD_create_response_from_data (strlen (HTTP_ERROR_RESPONSE),HTTP_ERROR_RESPONSE, MHD_NO, MHD_NO); res = MHD_queue_response (session, MHD_HTTP_NOT_FOUND, response); MHD_destroy_response (response); + if (res == MHD_YES) + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Peer has no valid ident, sent HTTP 1.1/404\n"); + else + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"Peer has no valid ident, could not send error\n"); return res; } diff --git a/src/transport/test_plugin_transport_http.c b/src/transport/test_plugin_transport_http.c index d3f0dbc2f..882560745 100644 --- a/src/transport/test_plugin_transport_http.c +++ b/src/transport/test_plugin_transport_http.c @@ -44,7 +44,7 @@ #define VERBOSE GNUNET_YES #define DEBUG GNUNET_NO -#define DEBUG_CURL GNUNET_NO +#define DEBUG_CURL GNUNET_YES #define HTTP_BUFFER_SIZE 2048 #define PLUGIN libgnunet_plugin_transport_template @@ -602,7 +602,6 @@ static void send_execute (void *cls, curl_handle=NULL; run_connection_tests(); - return; } if (res == &test_no_ident) {