ping stops responding when size of env chars exceeds specific amount
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C
- Estrellas
- 40.4k
- Forks
- 8.1k
- Merge medio
- 2 d 13 h
- PR fusionados (30 d)
- 96
Descripción
Description
i can reproduce this with the official docker images (tried php:8.3.10-fpm-alpine3.19 and php:8.4.0beta5-fpm-alpine3.20) doing this:
docker run --rm --name phptest php:8.3.10-fpm-alpine3.19 sh -c "apk add --no-cache fcgi && \
sed -i '/ping\.path/d' /usr/local/etc/php-fpm.d/www.conf && \
sed -i '/ping\.response/d' /usr/local/etc/php-fpm.d/www.conf && \
echo 'ping.path = /ping' >> /usr/local/etc/php-fpm.d/www.conf && \
echo 'ping.response = pong' >> /usr/local/etc/php-fpm.d/www.conf && \
php-fpm"
when i enter the container and trigger the ping it looks like this:
# SCRIPT_NAME=/ping SCRIPT_FILENAME=/ping REQUEST_METHOD=GET cgi-fcgi -bind -connect 127.0.0.1:9000
X-Powered-By: PHP/8.3.10
Content-type: text/plain;charset=UTF-8
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: no-cache, no-store, must-revalidate, max-age=0
pong
when i now create a bunch of envs, ping stops working:
i=1; while [ $i -le 494 ]; do export TEST_ENV_$i=f; i=$((i + 1)); done && SCRIPT_NAME=/ping SCRIPT_FILENAME=/ping REQUEST_METHOD=GET cgi-fcgi -bind -connect 127.0.0.1:9000
maybe this is not a bug, but i could not find any information regarding a size/limit that can be configured. it looks that my php application still works, even if ping does not respond anymore.
thx for any information or hints 🙏
PHP Version
tested with php:8.3.10-fpm-alpine3.19 and php:8.4.0beta5-fpm-alpine3.20
Operating System
docker alpine 3.19 and 3.20
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Reproduce el comportamiento con las imágenes de Docker de PHP 8.3.10 y 8.4.0beta5, utilizando la configuración de php-fpm en /usr/local/etc/php-fpm.d/www.conf y el comando cgi-fcgi mostrado. Compara la respuesta de /ping antes y después de exportar 494 variables de entorno y determina si el límite de tamaño relevante está documentado o se puede configurar, y qué comportamiento de PHP-FPM debería considerarse completado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- docker, php, shell
- Área
- backend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100