gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r12761 - libmicrohttpd/src/daemon


From: gnunet
Subject: [GNUnet-SVN] r12761 - libmicrohttpd/src/daemon
Date: Mon, 30 Aug 2010 15:42:58 +0200

Author: grothoff
Date: 2010-08-30 15:42:58 +0200 (Mon, 30 Aug 2010)
New Revision: 12761

Modified:
   libmicrohttpd/src/daemon/connection.c
Log:
nicer logging

Modified: libmicrohttpd/src/daemon/connection.c
===================================================================
--- libmicrohttpd/src/daemon/connection.c       2010-08-30 13:20:13 UTC (rev 
12760)
+++ libmicrohttpd/src/daemon/connection.c       2010-08-30 13:42:58 UTC (rev 
12761)
@@ -1411,8 +1411,15 @@
       if (errno == EINTR)
         return MHD_NO;
 #if HAVE_MESSAGES
-      MHD_DLOG (connection->daemon,
-                "Failed to receive data: %s\n", STRERROR (errno));
+#if HTTPS_SUPPORT
+      if (0 != (connection->daemon->options & MHD_USE_SSL))
+       MHD_DLOG (connection->daemon,
+                 "Failed to receive data: %s\n",
+                 gnutls_strerror (bytes_read));
+      else
+#endif      
+       MHD_DLOG (connection->daemon,
+                 "Failed to receive data: %s\n", STRERROR (errno));
 #endif
       connection_close_error (connection);
       return MHD_YES;
@@ -1451,8 +1458,15 @@
       if (errno == EINTR)
         return MHD_NO;
 #if HAVE_MESSAGES
-      MHD_DLOG (connection->daemon,
-                "Failed to send data: %s\n", STRERROR (errno));
+#if HTTPS_SUPPORT
+      if (0 != (connection->daemon->options & MHD_USE_SSL))
+       MHD_DLOG (connection->daemon,
+                 "Failed to send data: %s\n",
+                 gnutls_strerror (ret));
+      else
+#endif      
+       MHD_DLOG (connection->daemon,
+                 "Failed to send data: %s\n", STRERROR (errno));
 #endif
       connection_close_error (connection);
       return MHD_YES;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]