[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11763 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11763 - gnunet/src/transport |
Date: |
Tue, 15 Jun 2010 17:27:59 +0200 |
Author: wachs
Date: 2010-06-15 17:27:59 +0200 (Tue, 15 Jun 2010)
New Revision: 11763
Modified:
gnunet/src/transport/plugin_transport_http.c
gnunet/src/transport/test_plugin_transport_http.c
Log:
Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c 2010-06-15 14:34:25 UTC
(rev 11762)
+++ gnunet/src/transport/plugin_transport_http.c 2010-06-15 15:27:59 UTC
(rev 11763)
@@ -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 @@
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;
}
Modified: gnunet/src/transport/test_plugin_transport_http.c
===================================================================
--- gnunet/src/transport/test_plugin_transport_http.c 2010-06-15 14:34:25 UTC
(rev 11762)
+++ gnunet/src/transport/test_plugin_transport_http.c 2010-06-15 15:27:59 UTC
(rev 11763)
@@ -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 @@
curl_handle=NULL;
run_connection_tests();
- return;
}
if (res == &test_no_ident)
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11763 - gnunet/src/transport,
gnunet <=