loadcheck: Provide meaningful rejection message to clients

This commit is contained in:
Priyadi Iman Nurcahyo 2014-05-15 13:12:47 +00:00
parent d60882c857
commit 59f0c4426c

View File

@ -98,7 +98,7 @@ sub loadcheck {
if ($self->{_load} > $self->{_args}{max_load}) { if ($self->{_load} > $self->{_args}{max_load}) {
$self->log(LOGERROR, "local load too high: $self->{_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}"); return (DECLINED, "continuing with load: $self->{_load}");