mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:50:17 +00:00
Remove 'maxloadavg_frontend' restriction in Friendica
This commit is contained in:
parent
c2b5eb2838
commit
62bacbb833
6 changed files with 5 additions and 37 deletions
|
@ -588,14 +588,6 @@ class App
|
|||
throw new HTTPException\InternalServerErrorException('Apologies but the website is unavailable at the moment.');
|
||||
}
|
||||
|
||||
// Max Load Average reached: ERROR
|
||||
if ($this->system->isMaxProcessesReached() || $this->system->isMaxLoadReached()) {
|
||||
header('Retry-After: 120');
|
||||
header('Refresh: 120; url=' . $this->baseURL->get() . "/" . $this->args->getQueryString());
|
||||
|
||||
throw new HTTPException\ServiceUnavailableException('The node is currently overloaded. Please try again later.');
|
||||
}
|
||||
|
||||
if (!$this->mode->isInstall()) {
|
||||
// Force SSL redirection
|
||||
if ($this->baseURL->checkRedirectHttps()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue