aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/test_upgrade.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/test_upgrade.c')
-rw-r--r--src/microhttpd/test_upgrade.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c
index 4b9e5b8f..c1970989 100644
--- a/src/microhttpd/test_upgrade.c
+++ b/src/microhttpd/test_upgrade.c
@@ -1392,7 +1392,11 @@ recv_all (struct wr_socket *sock,
1392static void 1392static void
1393send_eof (struct wr_socket *sock) 1393send_eof (struct wr_socket *sock)
1394{ 1394{
1395 if (0 != wr_shutdown (sock, wr_is_eof_received (sock) ? SHUT_RDWR : SHUT_WR)) 1395 if (0 != wr_shutdown (sock, /*
1396 ** On Darwin local shutdown of RD cause error
1397 ** if remote side shut down WR before.
1398 wr_is_eof_received (sock) ? SHUT_RDWR : */
1399 SHUT_WR))
1396 externalErrorExitDesc ("Failed to shutdown connection"); 1400 externalErrorExitDesc ("Failed to shutdown connection");
1397} 1401}
1398 1402