Descriptionnet: 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 issue 5030.
Patch Set 1 #Patch Set 2 : diff -r 7b6b3b170d9a https://code.google.com/p/go/ #Patch Set 3 : diff -r 7b6b3b170d9a https://code.google.com/p/go/ #
MessagesTotal messages: 3
|