test_upgrade: adapted for macOS

This commit is contained in:
Evgeny Grin (Karlson2k)
2024-02-05 09:17:32 +01:00
parent 29d246a512
commit f3fe291e14
+5 -1
View File
@@ -1392,7 +1392,11 @@ recv_all (struct wr_socket *sock,
static void
send_eof (struct wr_socket *sock)
{
if (0 != wr_shutdown (sock, wr_is_eof_received (sock) ? SHUT_RDWR : SHUT_WR))
if (0 != wr_shutdown (sock, /*
** On Darwin local shutdown of RD cause error
** if remote side shut down WR before.
wr_is_eof_received (sock) ? SHUT_RDWR : */
SHUT_WR))
externalErrorExitDesc ("Failed to shutdown connection");
}