Networking (Linux): don't use MSG_DONTWAIT to send HTTP request

Ref #2401
This commit is contained in:
Carter Li
2026-06-20 10:17:04 +08:00
parent a1d4cbf67f
commit e1963e41be
+9 -2
View File
@@ -56,7 +56,14 @@ static const char* tryNonThreadingFastPath(FFNetworkingState* state) {
}
#ifndef __APPLE__
FF_DEBUG("Using sendto() + MSG_DONTWAIT to send %u bytes of data", state->command.length);
FF_DEBUG("Using sendto() "
#ifdef MSG_FASTOPEN
"+ MSG_FASTOPEN "
#endif
#ifdef MSG_NOSIGNAL
"+ MSG_NOSIGNAL "
#endif
"to send %u bytes of data", state->command.length);
ssize_t sent = sendto(state->sockfd,
state->command.chars,
state->command.length,
@@ -66,7 +73,7 @@ static const char* tryNonThreadingFastPath(FFNetworkingState* state) {
#ifdef MSG_NOSIGNAL
MSG_NOSIGNAL |
#endif
MSG_DONTWAIT,
0,
state->addr->ai_addr,
state->addr->ai_addrlen);
#else