Fix curl EOPNOSUPP due to MSG_NOSIGNAL

This commit is contained in:
Wildan M
2026-07-05 15:33:40 +07:00
parent fef4343580
commit 7f4c3803bc
+3
View File
@@ -985,6 +985,9 @@ impl PalSocket for Sys {
dest_addr: *const sockaddr,
dest_len: socklen_t,
) -> Result<usize> {
// TODO: Actually support MSG_NOSIGNAL
// TODO: TCP lacks `SocketCall::SendMsg` handling
let flags = flags & !MSG_NOSIGNAL;
if flags != 0 {
// Convert to sendmsg
let mut iov = iovec {