AliceO2 icon indicating copy to clipboard operation
AliceO2 copied to clipboard

Add asynchronous downloader that reuses connections to CCDB

Open TrifleMichael opened this issue 3 years ago • 0 comments

This change adds a downloader capable of parallel and asynchronous curl calls, with the ability to make callback functions after a request is finished.

A lot of the code is base on an example from the curl manual which combines libuv with libcurl (https://curl.se/libcurl/c/multi-uv.html)

The main differences between the example and this code are:

  • a mechanism that closes sockets after a set period of time,
  • the loop runs a parallel thread to the rest of the program.

In case of any questions or remarks please contact me at [email protected]

TrifleMichael avatar Oct 04 '22 15:10 TrifleMichael