Why would curl ignore CURLOPT_TIMEOUT_MS (but honor CURLOPT_TIMEOUT)?

前端 未结 2 959
生来不讨喜
生来不讨喜 2021-01-13 08:49

I am using curl to call a web service API. The service can unresponsive so I want to set a timeout. When I use CURLOPT_TIMEOUT things work as expected. But when I use CURLOP

2条回答
  •  野的像风
    2021-01-13 09:42

    To close this question:

    The version of curl I am using (7.15.5) doesn't support CURLOPT_TIMEOUT_MS. According to Greg I need at least 7.16.2.

提交回复
热议问题