aboutsummaryrefslogtreecommitdiff
path: root/pb
diff options
context:
space:
mode:
authorGravatar Ruslan Drozhdzh <30860269+rdrozhdzh@users.noreply.github.com> 2018-04-11 09:50:06 +0300
committerGravatar Miek Gieben <miek@miek.nl> 2018-04-11 07:50:06 +0100
commita20b4fe2de5da647a3a14a105c5e71393415b0b3 (patch)
treef1ca0954f43d991ab3156273befd41a85c652ad9 /pb
parent5a546f743e2d694524db8d5ce02415f53d6cd045 (diff)
downloadcoredns-a20b4fe2de5da647a3a14a105c5e71393415b0b3.tar.gz
coredns-a20b4fe2de5da647a3a14a105c5e71393415b0b3.tar.zst
coredns-a20b4fe2de5da647a3a14a105c5e71393415b0b3.zip
plugin/forward: use dynamic read timeout (#1659)
- each proxy stores average RTT (round trip time) of last rttCount queries. For now, I assigned the value 4 to rttCount - the read timeout is calculated as doubled average RTT, but it cannot exceed default timeout - initial avg RTT is set to a half of default timeout, so initial timeout is equal to default timeout - the RTT for failed read is considered equal to default timeout, so any failed read will lead to increasing average RTT (up to default timeout) - dynamic timeouts will let us react faster on lost UDP packets - in future, we may develop a low-latency forward policy based on collected RTT values of proxies
Diffstat (limited to 'pb')
0 files changed, 0 insertions, 0 deletions