rryqszq4 / ngx-php

ngx-php - Embedded php7 or php8 scripting language for nginx module. Mainline development version of the ngx-php.
BSD 2-Clause "Simplified" License
584 stars 56 forks source link

What is it `php_keepalive´ ? #84

Open joanhey opened 4 years ago

joanhey commented 4 years ago

In php, set upstream connection pool size.

Please, could you explain a little more what is it and what do ?

Than you.

rryqszq4 commented 4 years ago

Because the nginx kernel implements the socket connection pool, ngx_php uses it. The php_keepalive is used to set the connection limit in the connection pool. Currently, the default is 0 short connection. Note that this value is set only for each nginx worker.