1
0
mirror of https://github.com/golang/go synced 2024-11-20 10:14:43 -07:00
go/src
Russ Cox e64f3f211a net: never use backlog > 65535
The system call takes an int, but the kernel stores it in a uint16.
At least one Linux system sets /proc/sys/net/core/somaxconn
to 262144, which ends up being 0 in the uint16. Avoid being tricked.

FreeBSD sources also store the backlog in a uint16.
Assume the problem is systemic and fix it everywhere.

Fixes #5030.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7480046
2013-03-12 01:48:48 -04:00
..
cmd cmd/addr2line: exit 0 for --help 2013-03-11 18:12:07 -04:00
lib9 lib9, cmd/dist, cmd/ld: Plan 9: fix build 2013-03-11 13:34:57 -07:00
libbio
libmach cmd/ld: include full symbol table in Mach-O output 2013-03-10 16:24:01 -04:00
pkg net: never use backlog > 65535 2013-03-12 01:48:48 -04:00
all.bash
all.bat
all.rc build: do not set GOBIN on Plan 9 2013-02-26 09:25:46 -08:00
clean.bash
clean.bat
clean.rc
make.bash make.bash,bat: add -tags gotypes to the build 2013-03-06 13:16:43 -08:00
make.bat make.bash,bat: add -tags gotypes to the build 2013-03-06 13:16:43 -08:00
Make.dist
make.rc build: do not set GOBIN on Plan 9 2013-02-26 09:25:46 -08:00
race.bash src: add race.bash 2013-01-28 21:05:25 +11:00
race.bat src: add race.bat 2013-02-03 00:49:37 +08:00
run.bash cmd/ld, runtime/cgo: allow a symbol to be both cgo_export and cgo_import. 2013-03-11 14:24:51 +08:00
run.bat runtime,misc/cgo/test: disable broken tests so we can test the rest 2013-03-06 15:19:01 -05:00
run.rc build: do not set GOBIN on Plan 9 2013-02-26 09:25:46 -08:00
sudo.bash sudo.bash: diagnose when the go tool is not in $PATH 2012-11-15 10:42:39 -08:00