Minimizing buffering

Peter Krefting via curl-library <[email protected]> Mon, 16 Feb 2026 12:43:32 +0100
Newsgroups gmane.comp.web.curl.library
Organization /universe/earth/europe/norway/oslo
Message-ID <[email protected]>
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