#45522 [Asn->Fbk]: FCGI_GET_VALUES request does not return supplied values

From: Date: Mon, 29 Sep 2008 08:35:00 +0000
Subject: #45522 [Asn->Fbk]: FCGI_GET_VALUES request does not return supplied values
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-129319@lists.php.net to get a copy of this message
ID: 45522 Updated by: dmitry@php.net Reported By: arnaud dot lb at gmail dot com -Status: Assigned +Status: Feedback Bug Type: CGI related Operating System: * PHP Version: 5.3CVS-2008-07-15 (CVS) Assigned To: dmitry New Comment: 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 ...) Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#129319) next »