-
Notifications
You must be signed in to change notification settings - Fork 393
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
问题:wsl2中goproxy.cn基本不可用,过一段时间就会connection reset by peer #146
Comments
这看起来似乎是一个本地的网络问题。麻烦执行一下 |
感谢!下面是执行过程 curl -iv https://goproxy.cn/github.com/%21roaring%21bitmap/roaring/@v/v1.2.1.zip
|
麻烦执行一下 此外,我刚自己在本地有尝试过你拿到的这个 CDN 节点(112.240.62.41),一切正常。 |
输出如下:
|
update:
搜了下TLS handshake timeout 关键词搜出microsoft/WSL#4698 |
目前差不多把之前的issue看了没有相同的场景,希望能探讨下
当你执行
go version
命令后的输出结果是什么?$ go version
go version go1.16.9 linux/amd64
当你执行
go env
命令后的输出结果是什么?GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/xx/.cache/go-build"
GOENV="/home/xx/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/xx/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/xx/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.9"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2750135551
你做了什么?
下面是我排查的所有过程
dns 没问题
Go mod tidy会有问题
wsl2测速
测试下载文件也可以
下载goproxy.cn的文件
以这个为例 https://goproxy.cn/github.com/%21roaring%21bitmap/roaring/@v/v1.2.1.zip
其他
你期望看到的结果是什么?
goproxy正常
你实际看到的结果是什么?
超时导致connection reset by peer
希望有遇到类似问题的可以指教下,感谢
The text was updated successfully, but these errors were encountered: