aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r--src/microhttpd/daemon.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index b9cebc43..be7335be 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -1158,9 +1158,10 @@ send_param_adapter (struct MHD_Connection *connection,
1158 err = MHD_socket_errno_; 1158 err = MHD_socket_errno_;
1159 if ( (EINTR == err) || (EAGAIN == err) || (EWOULDBLOCK == err) ) 1159 if ( (EINTR == err) || (EAGAIN == err) || (EWOULDBLOCK == err) )
1160 return 0; 1160 return 0;
1161 if ( (EINVAL == err) || (EBADF == err) ) 1161 if (EBADF == err)
1162 return -1; 1162 return -1;
1163 /* None of the 'usual' sendfile errors occurred, so we should try 1163 /* sendfile() failed with EINVAL if mmap()-like operations are not
1164 supported for FD or other 'unusual' errors occurred, so we should try
1164 to fall back to 'SEND'; see also this thread for info on 1165 to fall back to 'SEND'; see also this thread for info on
1165 odd libc/Linux behavior with sendfile: 1166 odd libc/Linux behavior with sendfile:
1166 http://lists.gnu.org/archive/html/libmicrohttpd/2011-02/msg00015.html */ 1167 http://lists.gnu.org/archive/html/libmicrohttpd/2011-02/msg00015.html */