开发者

How to set a sleep time between cURL multi handles?

开发者 https://www.devze.com 2023-03-20 07:43 出处:网络
I need a time delay between each cURL call so that one process do not start at exactly the same time of another parallel process. In other words开发者_高级运维, they can run at the same time but not s

I need a time delay between each cURL call so that one process do not start at exactly the same time of another parallel process. In other words开发者_高级运维, they can run at the same time but not start at the same time.

Is there a way to set some kind of "sleep(2)" on the cURL multi handle?


The multi interface of libcurl process N handles/requests simultaneously. If you need one of the requests to start a bit later, then you can simply add it to the multi interface later!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号