php-signal-handler icon indicating copy to clipboard operation
php-signal-handler copied to clipboard

can not get repeat signal at same php-fpm process

Open monkeycraps opened this issue 9 years ago • 1 comments

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

monkeycraps avatar Feb 16 '16 09:02 monkeycraps

ping @mkaczanowski any ideas about this?

prolic avatar Jun 06 '16 10:06 prolic