Updated (2025-09-13) see “RIP pthread_cancel Updated (2025-08-22) at the end You probably know about threads and most likely heard of pthreads, but have you ever used pthread_cancel()? Well, I had not before last week and it was a little bit of a journey. What’s the problem? curl (or better libcurl) runs all transfers in the same thread (You can run libcurl in several threads, but that’s a story for another post).