goForward icon indicating copy to clipboard operation
goForward copied to clipboard

修复cpu跑满问题

Open shuqidejidan opened this issue 1 year ago • 1 comments

for {
		select {
		case <-ctx.Done():
			// 如果上级 context 被取消,停止接收新连接
			return
		default:
			copyWG.Wait()
		}
	}
for {
		select {
		case <-ctx.Done():
			// 如果上级 context 被取消,停止接收新连接
			return
		default:
			copyWG.Wait()
			// 返回,停止循环
			return
		}
	}

shuqidejidan avatar Dec 11 '24 08:12 shuqidejidan

感谢提供

csznet avatar Jan 07 '25 09:01 csznet