测试:调整tr下载器获取session_id的超时

This commit is contained in:
david 2022-10-23 16:48:09 +08:00
parent 666c5e3765
commit aa6ff6674e

View File

@ -899,8 +899,8 @@ class transmission extends AbstractClient
curl_setopt($ch, CURLOPT_USERPWD, $this->username.':'.$this->password);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 60);
curl_setopt($ch, CURLOPT_TIMEOUT, 300);
$content = curl_exec($ch);
$error_code = curl_errno($ch);
$error_message = curl_error($ch);