use EV and AnyEvent to synchronize between libarchive and libcurl