Doc #53331 [Opn->Asn]: curl_setopt timeout

From: Date: Thu, 18 Nov 2010 09:35:37 +0000
Subject: Doc #53331 [Opn->Asn]: curl_setopt timeout
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5543@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53331&edit=1 ID: 53331 Updated by: Kalle@php.net Reported by: hagaeru3sei at yahoo dot co dot jp Summary: curl_setopt timeout -Status: Open +Status: Assigned Type: Documentation Problem Package: cURL related Operating System: Linux PHP Version: 5.3.3 -Assigned To: +Assigned To: kalle Block user comment: N Private report: N New Comment: Thanks, I'll assign this to myself and will update the relevant documentation accordingly Previous Comments: ------------------------------------------------------------------------ [2010-11-18 09:15:13] hagaeru3sei at yahoo dot co dot jp Sorry, it was not "think", but I checked it. -- example -- true case curl = curl_easy_init(); curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/"); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 1000); res = curl_easy_perform(curl); res == CURLE_OK -- false case curl = curl_easy_init(); curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/"); curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 999); res = curl_easy_perform(curl); res != CURLE_OK and curl_error message is "Timeout was reached" This is the specification of cURL? if it is truth, we must confirm it and PHP documentation. ------------------------------------------------------------------------ [2010-11-17 15:34:56] kalle@php.net You think? Please make sure before you submit a bug report and set this status to "Open" if confirmed ------------------------------------------------------------------------ [2010-11-17 14:40:06] hagaeru3sei at yahoo dot co dot jp Description: ------------ --- From manual page: http://www.php.net/function.curl-setopt#パラメータ --- I think that it does not work "CURLOPT_CONNECTTIMEOUT_MS and CURLOPT_TIMEOUT_MS" when I set less than 1000 digit. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53331&edit=1

« previous php.doc.bugs (#5543) next »