mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 10:58:50 +03:00
Resolve #971
This commit is contained in:
parent
a9eff27f99
commit
5b536f81e3
2 changed files with 11 additions and 10 deletions
|
|
@ -3,16 +3,6 @@ if (defined('APP_VERSION_ROOT_PATH')) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (function_exists('sys_getloadavg')) {
|
||||
$load = sys_getloadavg();
|
||||
if ($load && $load[0] > 95) {
|
||||
header('HTTP/1.1 503 Service Unavailable');
|
||||
header('Retry-After: 120');
|
||||
exit('Mailserver too busy. Please try again later.');
|
||||
}
|
||||
unset($load);
|
||||
}
|
||||
|
||||
// PHP 8
|
||||
if (!function_exists('str_contains')) {
|
||||
function str_contains(string $haystack, string $needle) : bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue