mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-22 05:15:29 +09:00
FileHandler::getRemoteResource()에서 타임아웃 설정 사용시 존재하지 않는 메소드 호출 현상 수정
This commit is contained in:
parent
e49f1b1cbb
commit
1392a1d1e6
1 changed files with 9 additions and 2 deletions
|
|
@ -527,7 +527,6 @@ class FileHandler
|
||||||
{
|
{
|
||||||
$oRequest = new HTTP_Request(__PROXY_SERVER__);
|
$oRequest = new HTTP_Request(__PROXY_SERVER__);
|
||||||
$oRequest->setMethod('POST');
|
$oRequest->setMethod('POST');
|
||||||
$oRequest->_timeout = $timeout;
|
|
||||||
$oRequest->addPostData('arg', serialize(array('Destination' => $url, 'method' => $method, 'body' => $body, 'content_type' => $content_type, "headers" => $headers, "post_data" => $post_data)));
|
$oRequest->addPostData('arg', serialize(array('Destination' => $url, 'method' => $method, 'body' => $body, 'content_type' => $content_type, "headers" => $headers, "post_data" => $post_data)));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -571,7 +570,15 @@ class FileHandler
|
||||||
if($body)
|
if($body)
|
||||||
$oRequest->setBody($body);
|
$oRequest->setBody($body);
|
||||||
}
|
}
|
||||||
$oRequest->setConfig('timeout', $timeout);
|
|
||||||
|
if(method_exists($oRequest, 'setConfig'))
|
||||||
|
{
|
||||||
|
$oRequest->setConfig('timeout', $timeout);
|
||||||
|
}
|
||||||
|
elseif(property_exists($oRequest, '_timeout'))
|
||||||
|
{
|
||||||
|
$oRequest->_timeout = $timeout;
|
||||||
|
}
|
||||||
|
|
||||||
$oResponse = $oRequest->sendRequest();
|
$oResponse = $oRequest->sendRequest();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue