gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 153/154: Revert "mhd_send.c: for now, let E


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 153/154: Revert "mhd_send.c: for now, let EINVAL and EBADF fail hard."
Date: Mon, 19 Aug 2019 10:17:45 +0200

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

ng0 pushed a commit to branch master
in repository libmicrohttpd.

commit 3242129e19b6e463d28b0e464cad9891a2cffe1e
Author: ng0 <address@hidden>
AuthorDate: Sun Aug 18 12:15:17 2019 +0000

    Revert "mhd_send.c: for now, let EINVAL and EBADF fail hard."
    
    This reverts commit c51869af5a5f1b76cce745afaf9c75ac9a502ee0.
---
 src/microhttpd/mhd_send.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 862bd6e9..b3fb25da 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -76,7 +76,6 @@ pre_cork_setsockopt (struct MHD_Connection *connection,
       break;
     case EBADF:
       /* FIXME: should we die hard here? */
-      return MHD_ERR_BADF_; /* Fail hard */
       break;
     case EINVAL:
       /* FIXME: optlen invalid, should at least log this, maybe die */
@@ -85,7 +84,6 @@ pre_cork_setsockopt (struct MHD_Connection *connection,
                 _("optlen invalid: %s\n"),
                 MHD_socket_last_strerr_());
 #endif
-      return MHD_ERR_INVAL_; /* Fail hard */
       break;
     case EFAULT:
       /* wopsie, should at leats log this, FIXME: maybe die */
@@ -164,7 +162,6 @@ post_cork_setsockopt (struct MHD_Connection *connection,
       break;
     case EBADF:
       /* FIXME: should we die hard here? */
-      return MHD_ERR_BADF_; /* Fail hard */
       break;
     case EINVAL:
       /* FIXME: optlen invalid, should at least log this, maybe die */
@@ -173,7 +170,6 @@ post_cork_setsockopt (struct MHD_Connection *connection,
                 _("optlen invalid: %s\n"),
                 MHD_socket_last_strerr_());
 #endif
-      return MHD_ERR_INVAL_; /* Fail hard */
       break;
     case EFAULT:
       /* wopsie, should at leats log this, FIXME: maybe die */

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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