> Am 28.08.2023 um 12:41 schrieb Daniel Stenberg <dan...@haxx.se>: > > On Mon, 28 Aug 2023, Stefan Eissing via curl-library wrote: > >>>>> CURL **handles = curl_multi_get_handles(multi); >> >> The tricky part is to handle iterations when easy handles are removed and >> freed during the iteration. If we save pointers, this can become tedious. > > Right, but it has the nice property that it is a fixed snapshot in time. When > you iterate over this list and remove handles or even add new handles to the > multi, this list is already created and remains unmodified. > > Almost all other iterating APIs will be harder to document and possibly to > use, when you remove and add handles while traversing the handles. Yes, that is why I propose a snapshot (internal, invisible) of the transfer ids. Then the caller can even free handles during iteration without headaches. > > -- > > / 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
Re: Getting a list of easy handles in a multi handle - possible?
Stefan Eissing via curl-library Mon, 28 Aug 2023 03:52:01 -0700
- Re: Getting a li... Daniel Stenberg via curl-library
- Re: Getting a list of easy ha... Richard W.M. Jones via curl-library
- Re: Getting a list of easy handles in ... Timothe Litt via curl-library
- Re: Getting a list of easy handles in ... Ray Satiro via curl-library
- Re: Getting a list of easy handle... Daniel Stenberg via curl-library
- Re: Getting a list of easy handle... Henrik Holst via curl-library
- Re: Getting a list of easy ha... Daniel Stenberg via curl-library
- Re: Getting a list of eas... Patrick Monnerat via curl-library
- Re: Getting a list of... Stefan Eissing via curl-library
- Re: Getting a li... Daniel Stenberg via curl-library
- Re: Getting a li... Stefan Eissing via curl-library
- Re: Getting a li... Daniel Stenberg via curl-library
- Re: Getting a li... Patrick Monnerat via curl-library
- Re: Getting a li... Daniel Stenberg via curl-library
- Re: Getting a li... Stefan Eissing via curl-library
- Re: Getting a li... Daniel Stenberg via curl-library
- Re: Getting a li... Paul Fotheringham via curl-library
- Re: Getting a li... Daniel Stenberg via curl-library
- Re: Getting a li... bch via curl-library
- Re: Getting a li... bch via curl-library
- Re: Getting a li... Henrik Holst via curl-library