So I have, in my application, some third-party calls to webservices.

These services can take, on peak times, a lot of time to respond, such that the value I defined for `request_terminate_timeout` on my PHP-FPM setup is reached. Script is then brutally aborted, and I cannot make use of `register_shutdown_function` to attempt a cleanup of the request.

Is there any PHP/PHP-FPM setting I'm not aware of that could limit the **total** execution time of a request? A "graceful" way to handle PHP-FPM termination?

* `max_execution_time` only takes into account time spent in PHP, which in my case is not the cause of long-running scripts
* Using `pcntl` calls, for web requests, doesn't seem such a good idea.