diff options
-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 */ |