gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 07/10: transmit_error_response(): log error if response


From: gnunet
Subject: [libmicrohttpd] 07/10: transmit_error_response(): log error if response cannot be created
Date: Wed, 29 Sep 2021 19:52:49 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit f7c1213806c3237e00809821f9aa4ed1f21a0ea0
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed Sep 29 18:57:36 2021 +0300

    transmit_error_response(): log error if response cannot be created
---
 src/microhttpd/connection.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 2f8f211c..7b0e18ba 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -2251,6 +2251,12 @@ transmit_error_response_len (struct MHD_Connection 
*connection,
                                               MHD_RESPMEM_PERSISTENT);
   if (NULL == response)
   {
+#ifdef HAVE_MESSAGES
+    MHD_DLOG (connection->daemon,
+              _ ("Cannot create error response.\n"),
+              status_code,
+              message);
+#endif
     /* can't even send a reply, at least close the connection */
     connection->state = MHD_CONNECTION_CLOSED;
     return;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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