From e1963e41bef4c4397d12c25f96b067322c6fe9d5 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 20 Jun 2026 10:17:04 +0800 Subject: [PATCH] Networking (Linux): don't use `MSG_DONTWAIT` to send HTTP request Ref #2401 --- src/common/impl/networking_linux.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/common/impl/networking_linux.c b/src/common/impl/networking_linux.c index e253451fe..7e4056792 100644 --- a/src/common/impl/networking_linux.c +++ b/src/common/impl/networking_linux.c @@ -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