diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-01-31 21:05:12 +0100 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2024-01-31 21:05:12 +0100 |
commit | fe17d1accab22ad42b312755e8f6cdd86fe04790 (patch) | |
tree | 0c116a441097bb0cfd7038f690e6bb63e52691ca | |
parent | 1601c2883aeac5d100cbfe11cee1a164914ae6fd (diff) | |
download | libmicrohttpd-fe17d1accab22ad42b312755e8f6cdd86fe04790.tar.gz libmicrohttpd-fe17d1accab22ad42b312755e8f6cdd86fe04790.zip |
test_upgrade: adapted for macOS
-rw-r--r-- | src/microhttpd/test_upgrade.c | 6 |
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, | |||
1392 | static void | 1392 | static void |
1393 | send_eof (struct wr_socket *sock) | 1393 | send_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 | ||