mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 00:47:04 +03:00
Resolve #261
This commit is contained in:
parent
4f2f2dd485
commit
54f48fbe4d
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ if (defined('APP_VERSION_ROOT_PATH')) {
|
||||||
|
|
||||||
if (function_exists('sys_getloadavg')) {
|
if (function_exists('sys_getloadavg')) {
|
||||||
$load = sys_getloadavg();
|
$load = sys_getloadavg();
|
||||||
if ($load[0] > 95) {
|
if ($load && $load[0] > 95) {
|
||||||
header('HTTP/1.1 503 Service Unavailable');
|
header('HTTP/1.1 503 Service Unavailable');
|
||||||
header('Retry-After: 120');
|
header('Retry-After: 120');
|
||||||
exit('Mailserver too busy. Please try again later.');
|
exit('Mailserver too busy. Please try again later.');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue