diff options
author | pliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-25 14:23:54 +0000 |
---|---|---|
committer | pliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-25 14:23:54 +0000 |
commit | b63453b08cbf1b950c3c07d24f2a31b484b67cfc (patch) | |
tree | 62d4e1a857216b2ee56f8c11f180b0a8300e5466 /tools/android | |
parent | 57082dad3f3b957a4a19ecdf0f2f0e747eadefa3 (diff) | |
download | chromium_src-b63453b08cbf1b950c3c07d24f2a31b484b67cfc.zip chromium_src-b63453b08cbf1b950c3c07d24f2a31b484b67cfc.tar.gz chromium_src-b63453b08cbf1b950c3c07d24f2a31b484b67cfc.tar.bz2 |
Add new error messages to socket.cc in forwarder2.
TBR=bulach@chromium.org
BUG=345273
Review URL: https://codereview.chromium.org/179003004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253161 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/android')
-rw-r--r-- | tools/android/forwarder2/socket.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/android/forwarder2/socket.cc b/tools/android/forwarder2/socket.cc index fb0b48f..9feac84 100644 --- a/tools/android/forwarder2/socket.cc +++ b/tools/android/forwarder2/socket.cc @@ -96,8 +96,10 @@ void Socket::Close() { bool Socket::InitSocketInternal() { socket_ = socket(family_, SOCK_STREAM, 0); - if (socket_ < 0) + if (socket_ < 0) { + PLOG(ERROR) << "socket"; return false; + } tools::DisableNagle(socket_); int reuse_addr = 1; setsockopt(socket_, SOL_SOCKET, SO_REUSEADDR, &reuse_addr, @@ -171,6 +173,7 @@ bool Socket::BindAndListen() { errno = 0; if (HANDLE_EINTR(bind(socket_, addr_ptr_, addr_len_)) < 0 || HANDLE_EINTR(listen(socket_, SOMAXCONN)) < 0) { + PLOG(ERROR) << "bind/listen"; SetSocketError(); return false; } |