开发者

How to set a sleep time between cURL multi handles?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜