diff options
author | tonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-22 12:12:22 +0000 |
---|---|---|
committer | tonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-22 12:12:22 +0000 |
commit | 8cb4c7cefe0eff0e19f0cc1860f21c64cc8b3b39 (patch) | |
tree | 1e9cbfd24684b954d4704929e06162f08634ec04 /tools/android | |
parent | 1faaab7bcf1aadc661c12316fef434e3e2c30c6a (diff) | |
download | chromium_src-8cb4c7cefe0eff0e19f0cc1860f21c64cc8b3b39.zip chromium_src-8cb4c7cefe0eff0e19f0cc1860f21c64cc8b3b39.tar.gz chromium_src-8cb4c7cefe0eff0e19f0cc1860f21c64cc8b3b39.tar.bz2 |
[Forwarder] Deepen socket accept queue.
I was still able to reproduce the hang with this patch, but it seems like
a good idea to land this anyway.
BUG=253307
Review URL: https://chromiumcodereview.appspot.com/19759004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212873 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/android')
-rw-r--r-- | tools/android/forwarder2/socket.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/android/forwarder2/socket.cc b/tools/android/forwarder2/socket.cc index f49c9dc..9564e98 100644 --- a/tools/android/forwarder2/socket.cc +++ b/tools/android/forwarder2/socket.cc @@ -153,7 +153,7 @@ bool Socket::InitTcpSocket(const std::string& host, int port) { bool Socket::BindAndListen() { errno = 0; if (HANDLE_EINTR(bind(socket_, addr_ptr_, addr_len_)) < 0 || - HANDLE_EINTR(listen(socket_, 5)) < 0) { + HANDLE_EINTR(listen(socket_, SOMAXCONN)) < 0) { SetSocketError(); return false; } |