diff --git a/src/net/SocketDescriptor.cxx b/src/net/SocketDescriptor.cxx index 573c9c849..3c1c624f6 100644 --- a/src/net/SocketDescriptor.cxx +++ b/src/net/SocketDescriptor.cxx @@ -484,6 +484,9 @@ SocketDescriptor::WriteNoWait(std::span src) const noexcept #ifndef _WIN32 flags |= MSG_DONTWAIT; #endif +#ifdef __linux__ + flags |= MSG_NOSIGNAL; +#endif return Send(src, flags); }