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 issue 5030.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7480046
A+C: Philip K. Warren (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/7592044
encoding/base32, encoding/base64: fix issues with decoder whitespace handling

Adds a new reader to filter newlines, which fixes errors seen in the
decoder chunking code. Found additional issues with whitespace handling
after the first padding character.
Fixes issue 4779.

R=minux.ma, rsc, bradfitz
CC=golang-dev
https://codereview.appspot.com/7311069

Committer: Russ Cox <rsc@golang.org>