Fix instability in SSL client/server sockets
When writing to a socket, net::StreamSocket::Write() may return
immediately, but it may not write the whole buffer passed to it.
In this case SSL sockets were not trying to call Write() again
to send rest of the data, until client tries to call Write()
next time. If client doesn't call Write the remaining data is
never sent to the transport socket.
remoting_unittests was flaky due to this bug.
BUG=88726
TEST=updated net_unittest to catch the bug, remoting_unittests is not flaky
Review URL: http://codereview.chromium.org/7399025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93445 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed