-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
net: wrong sysctl name on FreeBSD #23653
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
OS-FreeBSD
release-blocker
Milestone
Comments
tklauser
changed the title
syscall: wrong sysctl name on FreeBSD
net: wrong sysctl name on FreeBSD
Feb 1, 2018
/cc @mikioh |
tklauser
added
the
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
label
Feb 1, 2018
Good catch, thanks for the report. |
mikioh
added
NeedsFix
The path to resolution is known, but the work has not been done.
OS-FreeBSD
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Feb 1, 2018
Change https://golang.org/cl/91317 mentions this issue: |
Reopening for go1.10. |
We're going to merge master to the Go 1.10 branch before the release, so no need to keep this issue open for that. |
Good to hear that. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
OS-FreeBSD
release-blocker
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10rc1 freebsd/amd64
What operating system and processor architecture are you using (
go env
)?go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/sternix/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="freebsd"
GOOS="freebsd"
GOPATH="/home/sternix/go"
GORACE=""
GOROOT="/opt/go/1_10rc1/go"
GOTMPDIR=""
GOTOOLDIR="/opt/go/1_10rc1/go/pkg/tool/freebsd_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
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=/tmp/go-build393653327=/tmp/go-build -gno-record-gcc-switches"
What did you do?
What did you expect to see?
compiled with go 1.9.2
% netstat -Lan
Current listen queue sizes (qlen/incqlen/maxqlen)
Proto Listen Local Address
tcp46 0/0/65535 *.8080
compiled with go 1.10rc1
% netstat -Lan
Current listen queue sizes (qlen/incqlen/maxqlen)
Proto Listen Local Address
tcp46 0/0/128 *.8080
i want to see
tcp46 0/0/65535 *.8080
i suspect the
e76ae8a#diff-871343a875351732bbc01da3b532b485
the pr cause this
because FreeBSD has " kern.ipc.soacceptqueue "," kern.ipc.somaxconn " sysctl's but no
" kern.ipc.acceptqueue "
% sysctl kern.ipc.soacceptqueue
kern.ipc.soacceptqueue: 65536
% sysctl kern.ipc.somaxconn
kern.ipc.somaxconn: 65536
% sysctl kern.ipc.acceptqueue
sysctl: unknown oid 'kern.ipc.acceptqueue'
after all, i think the line in
https://github.com/golang/go/blob/master/src/net/sock_bsd.go#L23
might be
n, err = syscall.SysctlUint32("kern.ipc.soacceptqueue")
Can you help.
The text was updated successfully, but these errors were encountered: