# go: github.com/user/repo@v1.0.0: 读取 tcp 192.0.2.1:443->proxy.golang.org:443: 输入/输出超时

- **ID:** `go/proxy-tls-handshake-timeout`
- **领域:** go
- **类别:** network_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

与 Go 模块代理的网络连接问题，通常由防火墙、DNS 或代理临时故障引起。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 1.16 | active | — | — |
| 1.21 | active | — | — |

## 解决方案

1. **** (80% 成功率)
   ```
   GOPROXY=direct go mod download
   ```
2. **** (85% 成功率)
   ```
   GOPROXY=https://goproxy.cn,direct go mod download
   ```

## 无效尝试

- **** — Go does not have a direct timeout setting for GOPROXY; the timeout is OS-level and cannot be changed via Go env. (100% 失败率)
- **** — If the network issue is persistent (e.g., firewall), retry will keep failing. (70% 失败率)
