Merge pull request #45 from priyadi/loadcheck

loadcheck: Provide meaningful rejection message to clients
This commit is contained in:
Matt Simerson 2014-05-15 07:53:34 -07:00
commit d1d2c46548

View File

@ -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}");