curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Minimizing buffering

From: Peter Krefting via curl-library <curl-library_at_lists.haxx.se>
Date: Mon, 16 Feb 2026 12:43:32 +0100

Hi!

I am using libcurl to connect to a text/event-source resource
(server-sent events), which outputs small line-based event data. When I
connect to a HTTP end-point, the write callback gets called often enough
for this to work, but when it is over HTTPS it buffers events (circa 200
bytes per event) for more than five seconds, even when I set the curl
buffer size to the minimum (1024 bytes).

Is there an additional HTTPS decryption buffer that I need to somehow
override for this connection to get this working? I am using OpenSSL as
the back-end.

-- 
\\// Peter - http://www.softwolves.pp.se/
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2026-02-16