aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-12-15 14:12:44 +0100
committerChristian Grothoff <christian@grothoff.org>2019-12-15 14:12:56 +0100
commit6f3a998f22c15891dfe5d33a8c1b138090aa6968 (patch)
tree5d437ce28692efd7069075b0c2232eef33c14a88
parent4cd47bcc3c1ea57bb37b7dc400d8f9f98d499c2a (diff)
downloadlibmicrohttpd-6f3a998f22c15891dfe5d33a8c1b138090aa6968.tar.gz
libmicrohttpd-6f3a998f22c15891dfe5d33a8c1b138090aa6968.zip
fix #5977
-rw-r--r--ChangeLog3
-rw-r--r--src/microhttpd/mhd_sockets.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3461e356..a8f5cf0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
1Sun 15 Dec 2019 02:12:02 PM CET
2 Fix send() call (affects Mac OS X). #5977 -CG/fbrault
3
1Fri 29 Nov 2019 11:22:25 PM CET 4Fri 29 Nov 2019 11:22:25 PM CET
2 If application suspends a connection before we could send 100 CONTINUE, 5 If application suspends a connection before we could send 100 CONTINUE,
3 give application another shot at queuing a reply before the upload begins. -CG 6 give application another shot at queuing a reply before the upload begins. -CG
diff --git a/src/microhttpd/mhd_sockets.c b/src/microhttpd/mhd_sockets.c
index 7172f8ee..cda00fdd 100644
--- a/src/microhttpd/mhd_sockets.c
+++ b/src/microhttpd/mhd_sockets.c
@@ -528,6 +528,7 @@ MHD_socket_cork_ (MHD_socket sock,
528 TCP_CORK always flushes socket buffer. */ 528 TCP_CORK always flushes socket buffer. */
529 if (0 > send (sock, 529 if (0 > send (sock,
530 &dummy, 530 &dummy,
531 0,
531 0)) 532 0))
532 return 0; /* even force flush failed!? */ 533 return 0; /* even force flush failed!? */
533 return 1; /* success */ 534 return 1; /* success */