php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58815 Request Timeout
Submitted: 2009-08-18 01:35 UTC Modified: 2010-05-28 20:26 UTC
From: mail at pierrew dot de Assigned: jawed (profile)
Status: Closed Package: oauth (PECL)
PHP Version: 5.2.6 OS: Debian
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mail at pierrew dot de
New email:
PHP Version: OS:

 

 [2009-08-18 01:35 UTC] mail at pierrew dot de
Description:
------------
Sometimes Webservices, that are being accessed, are offline or not reachable. Mostly, when a site is over capacity (like Twitter, when its being DoS'd again), the OAuth class keeps hanging for a real while until it gives up. It really would bei nice, if there is some setTimeout()-method inside, in which i can state an amount of seconds, until API requesting methods are giving up with an exception. 

Thanks for reading!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-01 02:50 UTC] jawed@php.net
Thanks for your feedback!

This feature would indeed be rather useful and will be 
seriously considered for the next release of pecl/oauth.
 [2010-05-28 20:26 UTC] jawed@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.

Added OAuth::setTimeout().
 [2013-01-21 23:51 UTC] lee at arstechnica dot com
After some investigation today I've determined that the timeout value is not 
working if OAuth is compiled without cURL support. Digging around oauth.c shows 
that a timeout is indeed being set on the socket. But I am consistently seeing it 
hang well past the specified time (and past my configured php timeout.)

I ended up recompiling with cURL support, but it is probably worth fixing and/or 
documenting.

I also did not see setTimeout on the this page, which may simply be because it is 
out of date. http://php.net/manual/en/book.oauth.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC