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
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: jasonp at cablemo dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 28 12:03:36 2021 UTC