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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: d dot snytkine at gmail dot com
New email:
PHP Version: OS:

 

 [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: Sat Apr 20 05:01:27 2024 UTC