On Sun, 27 Aug 2023, Henrik Holst via curl-library wrote:

CURL **handles = curl_multi_get_handles(multi);

where the last position in *handles would be NULL to indicate the end? Yes it would require libcurl to allocate a list and populate it at the call, but the allocation had to be done in this case anyway and returning a complete list at once avoids the problem with adds/dels during iteration of the list.

A benefit with this API design is that it can be freed with the already existing curl_free() function.

--

 / daniel.haxx.se
 | Commercial curl support up to 24x7 is available!
 | Private help, bug fixes, support, ports, new features
 | https://curl.se/support.html
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to