Setting Curl's Timeout in PHP

前端 未结 7 2009
你的背包
你的背包 2020-11-22 14:20

I\'m running a curl request on an eXist database through php. The dataset is very large, and as a result, the database consistently takes a long amount of time to return an

相关标签:
7条回答
  • 2020-11-22 14:44

    Hmm, it looks to me like CURLOPT_TIMEOUT defines the amount of time that any cURL function is allowed to take to execute. I think you should actually be looking at CURLOPT_CONNECTTIMEOUT instead, since that tells cURL the maximum amount of time to wait for the connection to complete.

    0 讨论(0)
提交回复
热议问题