Make some changes from my code review.  Two significant
changes are:
1. Call WSAEventSelect before connect to fix a race
   condition.
2. Call WSAResetEvent before WSARecv and WSASend because
   the event is manual-reset and WSAGetOverlappedResult
   doesn't reset the event for us.

R=darin

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@406 0039d316-1c4b-4281-b951-d872f2087c98
6 files changed