Skip to content
Commit 1ae142d7 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-mod-network: diagnostics: peg max traceroute hops to rpc timeout



In the worst case, traceroute might take up to 30s to complete when tracing
a completely unreachable path, due to the default limit of 30 hops multiplied
by the per-hop deadline of 1 second (-w 1).

Limit the maximum amount of hops to the configured rpc execution timeout,
20 second by default, in order to avoid running into timed out rpc requests.

Fixes: #5782
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 2f80fe37
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment