On 8/27/23 18:01, Daniel Stenberg via curl-library wrote:
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.

+1

IMO the best proposal yet :-) I don't see any drawback.

--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to