fix: Typo FPM_REQUEST_INFO (#134)
* Typo FPM_REQUEST_INFO
See `[FPM_REQUEST_INFO] = "Getting request information",` in 07fa13088e/sapi/fpm/fpm/fpm_request.c (L27)
* Fallback for PHP<7.4
This commit is contained in:
parent
51922f41bc
commit
cf49da4466
1 changed files with 3 additions and 1 deletions
|
@ -40,8 +40,9 @@ const PoolProcessRequestFinishing string = "Finishing"
|
||||||
// PoolProcessRequestReadingHeaders defines a process that is reading headers.
|
// PoolProcessRequestReadingHeaders defines a process that is reading headers.
|
||||||
const PoolProcessRequestReadingHeaders string = "Reading headers"
|
const PoolProcessRequestReadingHeaders string = "Reading headers"
|
||||||
|
|
||||||
// PoolProcessRequestInfo defines a process that is getting request information.
|
// PoolProcessRequestInfo defines a process that is getting request information. Was changed in PHP 7.4 to PoolProcessRequestInfo74
|
||||||
const PoolProcessRequestInfo string = "Getting request informations"
|
const PoolProcessRequestInfo string = "Getting request informations"
|
||||||
|
const PoolProcessRequestInfo74 string = "Getting request information"
|
||||||
|
|
||||||
// PoolProcessRequestEnding defines a process that is about to end.
|
// PoolProcessRequestEnding defines a process that is about to end.
|
||||||
const PoolProcessRequestEnding string = "Ending"
|
const PoolProcessRequestEnding string = "Ending"
|
||||||
|
@ -230,6 +231,7 @@ func CountProcessState(processes []PoolProcess) (active int64, idle int64, total
|
||||||
case PoolProcessRequestEnding:
|
case PoolProcessRequestEnding:
|
||||||
case PoolProcessRequestFinishing:
|
case PoolProcessRequestFinishing:
|
||||||
case PoolProcessRequestInfo:
|
case PoolProcessRequestInfo:
|
||||||
|
case PoolProcessRequestInfo74:
|
||||||
case PoolProcessRequestReadingHeaders:
|
case PoolProcessRequestReadingHeaders:
|
||||||
active++
|
active++
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue