net: prepare connect() for new network poller The problem is that new network poller can have spurious rediness notifications. This implementation ensures that the socket is actually connected.
net: prepare connect() for new network poller
The problem is that new network poller can have spurious
rediness notifications. This implementation ensures that
the socket is actually connected.

R=golang-dev, rsc, akumar
CC=golang-dev
https://codereview.appspot.com/7785043

h8liu/golang,h8liu/golang,h8liu/golang,h8liu/golang,h8liu/golang,h8liu/golang,h8liu/golang