]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon/worker: don't include connection setup for TCP and TLS in RTT
authorMarek Vavruša <mvavrusa@cloudflare.com>
Tue, 31 Jul 2018 22:07:58 +0000 (15:07 -0700)
committerMarek Vavruša <mvavrusa@cloudflare.com>
Fri, 7 Sep 2018 17:45:21 +0000 (10:45 -0700)
commit62b447ecbaf1342d75b3c23406d480d96a283f32
treea546df92fd87cb6e6313a361e1f59b1682f3124c
parent388363d8429b518fbef0ee0dbe7b5ca3dabd6151
daemon/worker: don't include connection setup for TCP and TLS in RTT

Currently the handshake time is included in the RTT, so TCP and TLS
retries/forwards makes upstreams look bad compared to UDP, and
discourage connection reuse as other "faster" origins end up
with lower score, so they would be preferred.

This commit excludes wait and handshake time, so only the actual
message exchange time is included in the RTT calculation.
daemon/worker.c