Try to use context.WithTimeout to detect HTTP timeout. Hopefully it might work.
author Star Brilliant
()
committer Star Brilliant
()
commit f8b40c4bfc703bcaf793e81868fa2c68e77445df
tree a3ec96449f590ea03242a14a831721af57305a77
parent bb1e21778a5e4398cfa08d0335144f0c7482c7a6
Try to use context.WithTimeout to detect HTTP timeout. Hopefully it might work.
doh-client/client.go
doh-client/google.go
doh-client/ietf.go