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

FileListener 报错了,看了这种实现在go1.3都不行额 #15

Closed
sword-jin opened this issue Feb 25, 2020 · 0 comments
Closed

FileListener 报错了,看了这种实现在go1.3都不行额 #15

sword-jin opened this issue Feb 25, 2020 · 0 comments

Comments

@sword-jin
Copy link

环境: maxos
golang: 1.13

terminal1

$ go run main.go
2020/02/25 19:29:16 process with pid 91709 serving :8080.
2020/02/25 19:29:16 process with pid 91709 stoped, error: net.FileListener error: file file+net : getsockopt: socket operation on non-socket.

切换到 linux 环境也是 bad file descriptor

go env

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/rry/Library/Caches/go-build"
GOENV="/Users/rry/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY="*.sprucetec.com"
GONOSUMDB="*.sprucetec.com"
GOOS="darwin"
GOPATH="/Users/rry/Code/go"
GOPRIVATE="*.sprucetec.com"
GOPROXY="https://goproxy.cn"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
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 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/7f/f63ykkrj62s7hvppyz4v6fqw0000gp/T/go-build540300067=/tmp/go-build -gno-record-gcc-switches -fno-common"

有了解的朋友吗

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

No branches or pull requests

1 participant