From 3bcf52e96f25a26b9d20b11d44056c00db85800a Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Sun, 1 Feb 2026 17:23:33 -0500 Subject: [PATCH] fix: force HTTP/1.1 for SSE streaming to avoid HTTP/2 framing errors --- clients/c/src/un.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clients/c/src/un.c b/clients/c/src/un.c index b5d02a4..4be772b 100644 --- a/clients/c/src/un.c +++ b/clients/c/src/un.c @@ -2909,6 +2909,8 @@ static int stream_paas_logs(const UnsandboxCredentials *creds, curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, stream_sse_callback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, NULL); curl_easy_setopt(curl, CURLOPT_USERAGENT, "un-cli/2.0"); + // Force HTTP/1.1 — SSE streaming breaks with HTTP/2 framing + curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); // No timeout — stream until interrupted curl_easy_setopt(curl, CURLOPT_TIMEOUT, 0L); // Low-speed limit to detect dead connections (10 bytes in 120s accounts for keepalives)