php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58930 Add custom exception to handle timeout
Submitted: 2009-10-30 07:38 UTC Modified: 2009-12-30 07:39 UTC
From: d dot snytkine at gmail dot com Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.2.5 OS:
Private report: No CVE-ID: None
 [2009-10-30 07:38 UTC] d dot snytkine at gmail dot com
Description:
------------
Right now it is difficult to handle timeout error - one has to parse the exception message and extract the 'timed out' string.

I would be very helpful if there was a special dedicated exception object that was thrown on time out.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-12-30 07:39 UTC] mike@php.net
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.

Most HttpRequestExceptions can now be distinguished by HttpRequestException::$curlCode which holds the return value of curl_easy_perform(). CURL_E_OPERATION_TIMEOUTED would be 28.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 15:01:32 2024 UTC