Skip to content

Commit

Permalink
net/SocketDescriptor: WriteNoWait() uses MSG_NOSIGNAL
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed May 6, 2024
1 parent d279b42 commit 8496b4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/net/SocketDescriptor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ SocketDescriptor::WriteNoWait(std::span<const std::byte> src) const noexcept
#ifndef _WIN32
flags |= MSG_DONTWAIT;
#endif
#ifdef __linux__
flags |= MSG_NOSIGNAL;
#endif

return Send(src, flags);
}
Expand Down

0 comments on commit 8496b4f

Please sign in to comment.