(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 15 Jun 2010 15:27:59 +0000 (15:27 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 15 Jun 2010 15:27:59 +0000 (15:27 +0000)
src/transport/plugin_transport_http.c
src/transport/test_plugin_transport_http.c

index e88a2d58118ec9e64aa205186fff2ba6be4641e9..dcb778de9562aa792431ba5598105ea6f17209b6 100644 (file)
@@ -39,7 +39,7 @@
 #include <curl/curl.h>
 
 
-#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;
     }
 
index d3f0dbc2fd39820594bbb9d7878e80f6cc21e809..88256074513c4b54fa82213d449a42cac20ff0e3 100644 (file)
@@ -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)
                   {