aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-05-04 15:37:26 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-05-05 08:27:12 +0200
commitf97b410fdd57743f9a26ea49086534000eb9626a (patch)
tree093e856dfc7c57fcb132fffc244f8da8da64e05a /src
parent091d6e04998d2c88dd7f42ad2d90929f428764c2 (diff)
http: Add log message when work queue is full
More useful error reporting.
Diffstat (limited to 'src')
-rw-r--r--src/httpserver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/httpserver.cpp b/src/httpserver.cpp
index 8297b6f758..67a9e1e92f 100644
--- a/src/httpserver.cpp
+++ b/src/httpserver.cpp
@@ -286,8 +286,10 @@ static void http_request_cb(struct evhttp_request* req, void* arg)
assert(workQueue);
if (workQueue->Enqueue(item.get()))
item.release(); /* if true, queue took ownership */
- else
+ else {
+ LogPrintf("WARNING: request rejected because http work queue depth exceeded, it can be increased with the -rpcworkqueue= setting\n");
item->req->WriteReply(HTTP_INTERNAL, "Work queue depth exceeded");
+ }
} else {
hreq->WriteReply(HTTP_NOTFOUND);
}