Re: [PATCH] http.c: clear the 'finished' member once we are done with it
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- May 24, 2022, 10:57 UTC
- Message-ID
- <nycvar.QRO.7.76.6.2205241253270.352@tvgsbejvaqbjf.bet>
- In-Reply-To
- <q274s3nn-pp38-4sn-53ro-o2q63447r341@unkk.fr>
Hi Daniel,
On Tue, 24 May 2022, Daniel Stenberg wrote:
Show 13 quoted lines
> On Mon, 23 May 2022, Junio C Hamano wrote: > > > > It calls into cURL, which I suspect has a multi-threaded mode of > > > operation, > > > > https://curl.se/libcurl/c/threadsafe.html ;-) > > > > My understanding is that what we have is pretty much select() driven > > single-threaded multi-fd transfer. > > Confirmed. libcurl *can* use threads (if built that way), but the only use it > has for such subthreads is for resolving host names. libcurl, its API and its > callbacks etc always operate in the same single thread.
Great, thanks for clarifying!
Ciao, Dscho
P.S.: I'm enjoying your book, Uncurled. It feels great to see validation in some experiences (I'm a youngster compared to you, maintaining Open Source software only since 2001 or so, but still), and to get a fresh and inspiring perspective on others.