net/SocketDescriptor: WriteNoWait() uses MSG_NOSIGNAL
This commit is contained in:
parent
3813433e02
commit
9c421997bf
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue