ID:               45522
 User updated by:  arnaud dot lb at gmail dot com
 Reported By:      arnaud dot lb at gmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         CGI related
 Operating System: *
 PHP Version:      5.3CVS-2008-07-15 (CVS)
 Assigned To:      dmitry
 New Comment:

PHP_FCGI_CHILDREN seems a good value for FCGI_MAX_CONNS and
FCGI_MAX_REQS. FCGI_MAX_REQS equals FCGI_MAX_CONNS as there is no
support for multiplexed connections.

I think these values are relevant only for the backend the request was
sent to (e.g. the manager runs 1 php-cgi backend process, asks it for
FCGI_MAX_CONNS and run other backend processes depending on that value).


Previous Comments:
------------------------------------------------------------------------

[2008-09-29 08:35:00] [EMAIL PROTECTED]

The PHP/FastCGI execution model doesn't allow to identify the real
value of FCGI_MAX_CONNS, as it depends on number of running php-cgi
backends. FastCGI manager may decide to run more or less backend
processes depending on load, but these processes don't communicate each
other and can't know how many processes run in the moment.

FCGI_MAX_REQS must be equal to FCGI_MAX_CONNS.

Currently FCGI_MAX_CONNS and FCGI_MAX_REQS return 1 that mean the
process can serve only one connection and one request in a moment.

I don't like to fix the issue as it can't be fixed in general without
significant complication (shared memory ...)

------------------------------------------------------------------------

[2008-07-15 16:02:09] arnaud dot lb at gmail dot com

Description:
------------
FastCGI specifies that a FastCGI application may return the values
supplied by a FCGI_GET_VALUES request.

Actually the FastCGI SAPI returns all standard values (FCGI_MAX_CONNS,
FCGI_MAX_REQS, FCGI_MPXS_CONNS), *except* those supplied.

Also, it seems that the returns values does not reflect the actual
configuration (e.g. FCGI_MAX_CONNS and FCGI_MAX_REQS are always 1).

Reproduce code:
---------------
Requesting the FCGI_MAX_CONN value using a FCGI_GET_VALUES record in
the FastCGI protocol.


Expected result:
----------------
Requesting the FCGI_MAX_CONN returns FCGI_MAX_CONN value.

Actual result:
--------------
Requesting the FCGI_MAX_CONN returns FCGI_MAX_REQS and FCGI_MPXS_CONNS
values but not FCGI_MAX_CONN.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45522&edit=1

Reply via email to