php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58290 Add a customizable timeout for HttpRequestPool::socketSelect
Submitted: 2008-07-26 23:25 UTC Modified: 2008-12-05 04:46 UTC
From: jasonp at cablemo dot com Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.2.4 OS: Ubuntu Linux current
Private report: No CVE-ID: None
 [2008-07-26 23:25 UTC] jasonp at cablemo dot com
Description:
------------
When using HttpRequestPool::socketSelect the function will potentially block for one second. The timeout is not customizable. 

In the source file http_request_pool_api.c 

the current timeout is defined by the function curl_multi_timeout if that call fails it defaults to 1 sec 0 usecs. 

Despite having an appropriate curl lib installed 7.2.18 it always seems to fallback on the default, which is one second. I don't know libcurl well enough to know if this is a bug or if it is something that can be improved upon. 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-05 04:46 UTC] mike@php.net
This bug has been fixed in CVS.

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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 10 18:01:28 2024 UTC