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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Fri May 10 11:01:32 2024 UTC