From 59f0c4426cb8b52cc683b8fdb16fb07895d66acb Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo Date: Thu, 15 May 2014 13:12:47 +0000 Subject: [PATCH] loadcheck: Provide meaningful rejection message to clients --- plugins/loadcheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/loadcheck b/plugins/loadcheck index a76718c..2369750 100644 --- a/plugins/loadcheck +++ b/plugins/loadcheck @@ -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}");