From 92d6b7c6753a5c5e5e241b77497d0cffed23eb22 Mon Sep 17 00:00:00 2001 From: doylet Date: Fri, 14 Nov 2025 19:26:11 +1100 Subject: [PATCH] Fix CURL swallowing multiple packets into one --- Source/Extra/dn_net_curl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Extra/dn_net_curl.cpp b/Source/Extra/dn_net_curl.cpp index a357050..58958d6 100644 --- a/Source/Extra/dn_net_curl.cpp +++ b/Source/Extra/dn_net_curl.cpp @@ -314,6 +314,8 @@ static int32_t DN_NET_CurlThreadEntryPoint_(DN_OSThread *thread) // > If this is not a complete fragment, the bytesleft field informs about how many // additional bytes are expected to arrive before this fragment is complete. curl_req->ws_has_more |= meta && meta->bytesleft > 0; + if (!curl_req->ws_has_more) + break; } // NOTE: curl_ws_recv returns CURLE_GOT_NOTHING if the associated connection is closed.