loadcheck: Provide meaningful rejection message to clients
This commit is contained in:
parent
d60882c857
commit
59f0c4426c
@ -98,7 +98,7 @@ sub loadcheck {
|
||||
|
||||
if ($self->{_load} > $self->{_args}{max_load}) {
|
||||
$self->log(LOGERROR, "local load too high: $self->{_load}");
|
||||
return DENYSOFT;
|
||||
return (DENYSOFT, "Server load too high, please try again later.");
|
||||
}
|
||||
|
||||
return (DECLINED, "continuing with load: $self->{_load}");
|
||||
|
Loading…
Reference in New Issue
Block a user