logging for num queries.

git-svn-id: file:///svn/unbound/trunk@404 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-06-20 09:17:09 +00:00
parent 9c33f8dcf4
commit 2573007d13

View file

@ -147,6 +147,8 @@ req_release(struct work_query* w)
worker->num_requests --;
w->next = worker->free_queries;
worker->free_queries = w;
verbose(VERB_ALGO, "released query to pool, %d in use",
(int)worker->num_requests);
}
/** create error and fill into buffer */
@ -624,6 +626,8 @@ worker_handle_request(struct comm_point* c, void* arg, int error,
that started before we performed listen_pushback */
verbose(VERB_DETAIL, "worker: too many incoming requests "
"active. dropping incoming query.");
verbose(VERB_ALGO, "currently servicing %d of %d queries",
(int)worker->num_requests, (int)worker->request_size);
worker->stats.num_query_list_exceeded++;
comm_point_drop_reply(repinfo);
query_info_clear(&qinfo);