diff options
-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; } |