2
이봐, 난은 서버에서 PHP 서비스를 호출 할 Zend_Http_Client
를 사용하고,하지만 난 시간 제한 관련 예외를 가지고 :Zend_Http_Client 시간이 초과되었습니다
2012-05-30T13:47:26+02:00 INFO(6): LeomobileMdcms: Requesting callback url (http://######.nurago.com/mobileRedirect.php?resp=NRGH&annotations=) while updating (356812045426135) of device with token (BtPhP), in LeomobileMdcms_UserInformationController::registerdeviceAction
2012-05-30T13:47:41+02:00 ERR(3): LeomobileMdcms: Exception throwed: Unable to Connect to tcp://########.nurago.com:80. Error #110: Connection timed out, in LeomobileMdcms_UserInformationController::registerdeviceAction
이 조각은 콜백 URL을 호출하기위한 책임이있다 :
$client = new Zend_Http_Client($receivedSmsUrl);
$client->setConfig(array("timeout"=>5));
try {
$this->log("Requesting callback url ($receivedSmsUrl) while updating "
."IMEI ($address) of device with token ($token), in ".__METHOD__,
Zend_Log::INFO);
$response = $client->request();
if ($response->isError()) {
$this->log("Request failed. Server reply: ".$response->getStatus()
." ".$response->getMessage(),
Zend_Log::WARN);
}
} catch(Zend_Http_Client_Exception $e) {
$this->log("Exception throwed: ".$e->getMessage().", in ".__METHOD__,
Zend_Log::ERR);
}
방화벽 문제로 생각했지만 불행히도 방화벽과 관련이 없습니다.
제발 좀 도와 주실 수 있습니까?
아마도 Op에서 Zend_Http_Client_Adapter_Curl을 사용해야하는 이유에 대해 더 자세히 설명 할 수 있습니까? 적어도 그것을 설명하는 리소스에 대한 링크입니다. –
같은 문제에 직면했을 때 도움이되었습니다. –
오늘 하루를 절약 할 수 있습니다. –