Skip to content

Commit f97b410

Browse files
committed
http: Add log message when work queue is full
More useful error reporting.
1 parent 091d6e0 commit f97b410

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/httpserver.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,10 @@ static void http_request_cb(struct evhttp_request* req, void* arg)
286286
assert(workQueue);
287287
if (workQueue->Enqueue(item.get()))
288288
item.release(); /* if true, queue took ownership */
289-
else
289+
else {
290+
LogPrintf("WARNING: request rejected because http work queue depth exceeded, it can be increased with the -rpcworkqueue= setting\n");
290291
item->req->WriteReply(HTTP_INTERNAL, "Work queue depth exceeded");
292+
}
291293
} else {
292294
hreq->WriteReply(HTTP_NOTFOUND);
293295
}

0 commit comments

Comments
 (0)