Buy commercial curl support from WolfSSL. 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
himself.
Re: help: curl_multi_info_read always return NULL
From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 19 Dec 2019 08:42:35 +0100 (CET)
Date: Thu, 19 Dec 2019 08:42:35 +0100 (CET)
On Thu, 19 Dec 2019, peng xu via curl-library wrote:
> CURLMcode code = curl_multi_perform(multi_handle, &still_running);
When you read the documentation for this function or checked one of the
numerous examples we provide that use it, you must've missed that this
function needs to be called many times to drive the transfer(s) all the way to
the end.
Each curl_multi_perform() call just brings the transfer forward to the point
where it would otherwise block or wait, and then it returns.
You then need to wait for "activity" on the sockets or a timeout and then call
it again.
I really think you should read the docs again and check the examples. We have
plenty of both.
-- / daniel.haxx.se | Get the best commercial curl support there is - from me | Private help, bug fixes, support, ports, new features | https://www.wolfssl.com/contact/ ------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.htmlReceived on 2019-12-19