Skip to content

Commit

Permalink
fix: Typo FPM_REQUEST_INFO (#134)
Browse files Browse the repository at this point in the history
* Typo FPM_REQUEST_INFO

See `[FPM_REQUEST_INFO]            = "Getting request information",` in https://github.com/php/php-src/blob/07fa13088e1349f4b5a044faeee57f2b34f6b6e4/sapi/fpm/fpm/fpm_request.c#L27

* Fallback for PHP<7.4
  • Loading branch information
stchr authored May 10, 2021
1 parent 51922f4 commit cf49da4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phpfpm/phpfpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ const PoolProcessRequestFinishing string = "Finishing"
// PoolProcessRequestReadingHeaders defines a process that is 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 PoolProcessRequestInfo74 string = "Getting request information"

// PoolProcessRequestEnding defines a process that is about to end.
const PoolProcessRequestEnding string = "Ending"
Expand Down Expand Up @@ -230,6 +231,7 @@ func CountProcessState(processes []PoolProcess) (active int64, idle int64, total
case PoolProcessRequestEnding:
case PoolProcessRequestFinishing:
case PoolProcessRequestInfo:
case PoolProcessRequestInfo74:
case PoolProcessRequestReadingHeaders:
active++
default:
Expand Down

0 comments on commit cf49da4

Please sign in to comment.