From 68b9d074965c6e93255af4ff651e2978497d6882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Benkovsk=C3=BD?= Date: Fri, 11 Feb 2022 22:32:20 +0100 Subject: [PATCH] use user provided read timeout as DoH timeout --- cmd/dnstrace/benchmark.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dnstrace/benchmark.go b/cmd/dnstrace/benchmark.go index d2381a4..f90cb0d 100644 --- a/cmd/dnstrace/benchmark.go +++ b/cmd/dnstrace/benchmark.go @@ -79,7 +79,7 @@ func do(ctx context.Context) []*rstats { network = network + "/1.1" tr = &http.Transport{} } - c := http.Client{Transport: tr} + c := http.Client{Transport: tr, Timeout: *pReadTimeout} dohClient = *doh.NewClient(&c) switch *pDoHmethod {