Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
net: no way to set timeout for LookupAddr #16672
On Go 1.6, amd64 linux.
My application does a lot of lookups via net.LookupAddr. Sometimes, it gets stuck forever:
I tried to follow the code inside go, but there doesn't seem to be a way to set a timeout for this request.
Yes. And we can't modify any existing API; we can only add.
I think the most future-proof option is to add a new
And then we can add options in the future to the
I'd be happy to draft a proposal for this. Should I file a new issue when it's ready?