[PR #110] [MERGED] net.LookupIP may cause deadlock in windows #529

Closed
opened 2026-02-27 23:17:19 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/snail007/goproxy/pull/110
Author: @boboanvip
Created: 7/12/2018
Status: Merged
Merged: 7/12/2018
Merged by: @snail007

Base: devHead: dev


📝 Commits (3)

  • 907dec4 net.LookupIP may cause deadlock in windows
  • 61f791e Merge branch 'dev' into dev
  • 5980fee net.LookupIP may cause deadlock in windows

📊 Changes

1 file changed (+2 additions, -4 deletions)

View changed files

📝 utils/functions.go (+2 -4)

📄 Description

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


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/snail007/goproxy/pull/110 **Author:** [@boboanvip](https://github.com/boboanvip) **Created:** 7/12/2018 **Status:** ✅ Merged **Merged:** 7/12/2018 **Merged by:** [@snail007](https://github.com/snail007) **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (3) - [`907dec4`](https://github.com/snail007/goproxy/commit/907dec42e0bdae6bb44286328cdaa4f553bc0055) net.LookupIP may cause deadlock in windows - [`61f791e`](https://github.com/snail007/goproxy/commit/61f791e77d12921972a4347b41585b0f5cacb70a) Merge branch 'dev' into dev - [`5980fee`](https://github.com/snail007/goproxy/commit/5980fee7887f0cca4d061762d5cc451df1dd754c) net.LookupIP may cause deadlock in windows ### 📊 Changes **1 file changed** (+2 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `utils/functions.go` (+2 -4) </details> ### 📄 Description https://github.com/golang/go/issues/24178 net.LookupIP在windows平台上,当电脑没有连接外网的情况下,会导致死锁,持续性的请求会导致进程句柄占用一直上涨。使用带超时的功能的context可以避免这个问题 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 23:17:19 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#529
No description provided.