> We discourage users from using curl_easy_recv() > for doing any protocol that libcurl implements natively.
Ok, found it! The solution was obvious, sorry for all the blurps: curl_easy_pause() Inside the multi_perform/callbacks caller's loop, it allows better control over the "transfer loop" from the caller's side. I'll just have to be careful about "multi-threading unpause" (mutex-like I assume!). Shouldn't the PoC fcurl_read() use curl_easy_pause() instead of buffering all in memory? It is still scary to read in libcurl's documentation that when pausing http/2 libcurl might buffer up to 32MB of data for each transfer! Is there a "SETOPT" to control that? Cheers Alain ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.html