mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 13:59:06 +01:00
http: Add log message when work queue is full
More useful error reporting.
This commit is contained in:
parent
091d6e0499
commit
f97b410fdd
@ -286,8 +286,10 @@ static void http_request_cb(struct evhttp_request* req, void* arg)
|
|||||||
assert(workQueue);
|
assert(workQueue);
|
||||||
if (workQueue->Enqueue(item.get()))
|
if (workQueue->Enqueue(item.get()))
|
||||||
item.release(); /* if true, queue took ownership */
|
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");
|
item->req->WriteReply(HTTP_INTERNAL, "Work queue depth exceeded");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
hreq->WriteReply(HTTP_NOTFOUND);
|
hreq->WriteReply(HTTP_NOTFOUND);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user