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

net.LookupIP may cause deadlock in windows #110

Merged
merged 3 commits into from Jul 12, 2018
Merged

Conversation

boboanvip
Copy link
Contributor

@boboanvip boboanvip commented Jul 12, 2018

golang/go#24178
net.LookupIP在windows平台上,当电脑没有连接外网的情况下,会导致死锁,持续性的请求会导致进程句柄占用一直上涨。使用带超时的功能的context可以避免这个问题

@snail007 snail007 merged commit e208cce into snail007:dev Jul 12, 2018
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

Successfully merging this pull request may close these issues.

None yet

2 participants