mirror of
https://gitee.com/ledc/IYUUAutoReseed
synced 2025-08-26 07:54:48 +00:00
优化:延长超时时间,解决做种太多客户端响应超时的问题
This commit is contained in:
@@ -571,7 +571,8 @@ class TransmissionRPC
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_POST, true);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
|
||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT, 600);
|
||||
$content = curl_exec($ch);
|
||||
curl_close($ch);
|
||||
|
||||
|
Reference in New Issue
Block a user