Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Daniel Kahn Gillmor
Knot DNS Resolver
Commits
961a70a0
Commit
961a70a0
authored
Jan 30, 2016
by
Marek Vavrusa
Browse files
daemon/worker: updated doc, worker.timeout metric
parent
a40884f9
Changes
2
Show whitespace changes
Inline
Side-by-side
daemon/README.rst
View file @
961a70a0
...
...
@@ -736,7 +736,10 @@ specified worker count and process rank.
* ``tcp`` - number of outbound queries over TCP
* ``ipv6`` - number of outbound queries over IPv6
* ``ipv4`` - number of outbound queries over IPv4
* ``timeout`` - number of timeouted outbound queries
* ``concurrent`` - number of concurrent queries at the moment
* ``queries`` - number of inbound queries
* ``dropped`` - number of dropped inbound queries
Example:
...
...
daemon/worker.c
View file @
961a70a0
...
...
@@ -352,7 +352,7 @@ static void on_timeout(uv_timer_t *req)
#endif
if
(
!
uv_is_closing
(
handle
))
{
struct
worker_ctx
*
worker
=
task
->
worker
;
worker
->
stats
.
queries
+=
1
;
worker
->
stats
.
timeout
+=
1
;
qr_task_step
(
task
,
NULL
,
NULL
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment