diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-12-15 14:12:44 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-12-15 14:12:56 +0100 |
commit | 6f3a998f22c15891dfe5d33a8c1b138090aa6968 (patch) | |
tree | 5d437ce28692efd7069075b0c2232eef33c14a88 | |
parent | 4cd47bcc3c1ea57bb37b7dc400d8f9f98d499c2a (diff) | |
download | libmicrohttpd-6f3a998f22c15891dfe5d33a8c1b138090aa6968.tar.gz libmicrohttpd-6f3a998f22c15891dfe5d33a8c1b138090aa6968.zip |
fix #5977
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/microhttpd/mhd_sockets.c | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -1,3 +1,6 @@ | |||
1 | Sun 15 Dec 2019 02:12:02 PM CET | ||
2 | Fix send() call (affects Mac OS X). #5977 -CG/fbrault | ||
3 | |||
1 | Fri 29 Nov 2019 11:22:25 PM CET | 4 | Fri 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 */ |