libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 52cc71a8bc50ac773eb220b8fda88fe44fb1d322
parent 8ba95f2eb5ace15d9c047e2a6d100b0bc1feeb92
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 18 Mar 2011 12:34:34 +0000

removing MSG_DONTWAIT as per discussion on ML

Diffstat:
MChangeLog | 4++++
Msrc/daemon/daemon.c | 7++-----
2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,7 @@ +Fri Mar 18 13:23:47 CET 2011 + Removing MSG_DONTWAIT which should not be needed and was presumably + causing problems with EAGAIN under certain circumstances. -ES + Fri Mar 11 22:25:29 CET 2011 Fixing bug in MHD_create_response_from_fd_at_offset with non-zero offsets. -ES diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c @@ -75,9 +75,6 @@ #ifndef MSG_NOSIGNAL #define MSG_NOSIGNAL 0 #endif -#ifndef MSG_DONTWAIT -#define MSG_DONTWAIT 0 -#endif #endif /** @@ -712,7 +709,7 @@ recv_param_adapter (struct MHD_Connection *connection, return -1; if (0 != (connection->daemon->options & MHD_USE_SSL)) return RECV (connection->socket_fd, other, i, MSG_NOSIGNAL); - return RECV (connection->socket_fd, other, i, MSG_NOSIGNAL | MSG_DONTWAIT); + return RECV (connection->socket_fd, other, i, MSG_NOSIGNAL); } /** @@ -767,7 +764,7 @@ send_param_adapter (struct MHD_Connection *connection, http://lists.gnu.org/archive/html/libmicrohttpd/2011-02/msg00015.html */ } #endif - return SEND (connection->socket_fd, other, i, MSG_NOSIGNAL | MSG_DONTWAIT); + return SEND (connection->socket_fd, other, i, MSG_NOSIGNAL); }