php.net |  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
 [2014-05-25 13:29 UTC] pslawek83 at o2 dot pl
Description:
------------
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-05-25 14:10 UTC] rasmus@php.net
-Status: Open +Status: Not a bug
 [2014-05-25 14:10 UTC] rasmus@php.net
Persistent resources in PHP are always per-process
 [2014-05-26 14:49 UTC] mike@php.net
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-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 30 15:01:23 2021 UTC