diff options
author | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-05 03:09:04 +0000 |
---|---|---|
committer | rch@chromium.org <rch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-05 03:09:04 +0000 |
commit | 88e03fa16a2ed1a178822d4ba46dd96a276815a4 (patch) | |
tree | aafed5350e0a5da62b70d277db84d0ee87512a33 /net/socket/tcp_client_socket_libevent.cc | |
parent | b3d75b91d5160d03e5e58ea430cfc5f33f2eee32 (diff) | |
download | chromium_src-88e03fa16a2ed1a178822d4ba46dd96a276815a4.zip chromium_src-88e03fa16a2ed1a178822d4ba46dd96a276815a4.tar.gz chromium_src-88e03fa16a2ed1a178822d4ba46dd96a276815a4.tar.bz2 |
Clarify the semantics of Socket::Read() and Socket::Write(),
particularly as they related to closed / disconnected sockets.
Added a new ERR_SOCKET_NOT_CONNECTED error which is now returned by GetPeerAddress.
This addresses wtc's feedback on CL 3421028.
BUG=56423,56426
TEST=none
Review URL: http://codereview.chromium.org/3384034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61471 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/tcp_client_socket_libevent.cc')
-rw-r--r-- | net/socket/tcp_client_socket_libevent.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket/tcp_client_socket_libevent.cc b/net/socket/tcp_client_socket_libevent.cc index 6f7403b..0509388 100644 --- a/net/socket/tcp_client_socket_libevent.cc +++ b/net/socket/tcp_client_socket_libevent.cc @@ -529,7 +529,7 @@ int TCPClientSocketLibevent::GetPeerAddress(AddressList* address) const { DCHECK(CalledOnValidThread()); DCHECK(address); if (!IsConnected()) - return ERR_UNEXPECTED; + return ERR_SOCKET_NOT_CONNECTED; address->Copy(current_ai_, false); return OK; } |