|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67339 HTTP v2 won't store persistent handles per process
Submitted: 2014-05-25 13:29 UTC Modified: 2014-05-26 14:49 UTC
From: pslawek83 at o2 dot pl Assigned:
Status: Not a bug Package: HTTP related
PHP Version: Irrelevant OS: Linux
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:
Bug Type:
From: pslawek83 at o2 dot pl
New email:
PHP Version: OS:


 [2014-05-25 13:29 UTC] pslawek83 at o2 dot pl
Hi Guys,

i think that's a bug, when using PHP_HTTP v2 module:

$client = new http\Client('curl', 'FH');

Persistent connection handles are stored per-process, not globally, when PHP is used as PHP-fpm fcgi. Is that supposed to work like this?

Expected result:
http\Client will pick one unused persistent connection from global, not per-process pool.

Actual result:
http\Client will pick one unused persistent connection from process local pool.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-25 14:10 UTC]
-Status: Open +Status: Not a bug
 [2014-05-25 14:10 UTC]
Persistent resources in PHP are always per-process
 [2014-05-26 14:49 UTC]
Rasmus is right, though, the persistent handles in pecl_http v2 are maintained by pecl/raphf and not Zend, so "always" might be a bit misleading in this case.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 08:01:29 2024 UTC