Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is hard_timeout in PHP Core config?

Tags:

php

php-7.1

Available since PHP 7.1.0, hard_timeout have 2 seconds as default value and accept integgers as value.

At documentation, http://php.net/manual/en/ini.core.php#ini.hard-timeout, there is no additional information available.

What's the difference between other "timeout" flags and hard_timeout in PHP?

like image 839
LeonanCarvalho Avatar asked Mar 20 '18 20:03

LeonanCarvalho


1 Answers

PHP timeout will try to kill the application "softly".

In case it can't, by any reason, the hard timeout will kill by force.

Info from here: http://php-news.ctrl-f5.net/message/php.internals/92559

like image 82
Felippe Duarte Avatar answered Oct 04 '22 06:10

Felippe Duarte