我搜索了很多,甚至是CURL的官方常见问题解答,但找不到明确的答案。
备注:与问题Reusing the same curl handle. Big performance increase?有关,但接受的答案没有明确回答,也没有官方参考。
答案 0 :(得分:1)
也许这会回答你的问题:
curl.haxx.se/docs/faq.html#What_about_Keep_Alive_or_persist
curl and libcurl have excellent support for persistent connections when
transferring several files from the same server. Curl will attempt to reuse
connections for all URLs specified on the same command line/config file, and
libcurl will reuse connections for all transfers that are made using the same
libcurl handle.