Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the unit of timeout? #12

Closed
ghost opened this issue Feb 16, 2017 · 2 comments
Closed

What's the unit of timeout? #12

ghost opened this issue Feb 16, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 16, 2017

Is it a "second" ?
If so, wouldn't it be so long for the default value to be 6 seconds?

@shawn1m
Copy link
Owner

shawn1m commented Feb 17, 2017

This timeout is a cumulative timeout for dial, write and read, overrides DialTimeout, ReadTimeout and WriteTimeout when non-zero, and the default value of those three is 2.
https://godoc.org/github.com/miekg/dns

@ghost
Copy link
Author

ghost commented Feb 17, 2017

I got it. Thanks!

@ghost ghost closed this as completed Feb 17, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant