php-signal-handler
php-signal-handler copied to clipboard
can not get repeat signal at same php-fpm process
i use attach_signal(15, 'getInfoWhenTerminate')
to handle the timeout php-fpm process
with setting at php.ini
max_execution_time = 2
setting at php-fpm.conf
request_terminate_timeout = 1s
y, the first request get correct handle at getInfoWhenTerminate,
the second request will not goto my custom function getInfoWhenTerminate
[16-Feb-2016 17:38:21] WARNING: [pool www] child 23, script '/opt/a.php' (request: "GET /a.php") execution timed out (1.287668 sec), terminating
[16-Feb-2016 17:38:22] WARNING: [pool www] child 23, script '/opt/a.php' (request: "GET /a.php") execution timed out (1.621671 sec), terminating
[16-Feb-2016 17:38:22] WARNING: [pool www] child 23, script '/opt/a.php' (request: "GET /a.php") execution timed out (1.955698 sec), terminating
...
it will end when reach the php max_execution_time time, and just display errors
ping @mkaczanowski any ideas about this?