You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2020. It is now read-only.
Yeah, I agree that DialTimeout("tcp", ":7070", 500*time.Millisecond) reads better.
The reason there isn't a default Dial() (w/o timeout) is because the range of desirable real-world timeouts is pretty enormous. Do you have an opinion about what a reasonable default would be?
So I changed Dial to use time.Duration. I'm going to leave the issue open in case someone feels strongly about the simpler constructor.
philhofer
changed the title
Provide Dial(net, addr) and DialTimeout(network, address string, timeout time.Duration)
Provide Dial(net, addr)
Feb 13, 2015
over the millisecond int?
The text was updated successfully, but these errors were encountered: