diff options
author | Eugene Ostroukhov <eostroukhov@chromium.org> | 2018-04-24 21:16:55 +0300 |
---|---|---|
committer | Eugene Ostroukhov <eostroukhov@google.com> | 2018-04-26 19:16:02 +0300 |
commit | 71059fbfa531f0229ca70a23c0082cec7315d6b4 (patch) | |
tree | 9b378453eb58fc1455c4499538efe8eb551bd36e /src/inspector_socket_server.cc | |
parent | e8e6e775fbe3f92724411391e57abe0dd5a44622 (diff) |
inspector: Use default uv_listen backlog size
PR-URL: https://github.com/nodejs/node/pull/20254
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'src/inspector_socket_server.cc')
-rw-r--r-- | src/inspector_socket_server.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inspector_socket_server.cc b/src/inspector_socket_server.cc index 3725c19e93f..e69c8d768be 100644 --- a/src/inspector_socket_server.cc +++ b/src/inspector_socket_server.cc @@ -587,7 +587,8 @@ int ServerSocket::Listen(InspectorSocketServer* inspector_server, CHECK_EQ(0, uv_tcp_init(loop, server)); int err = uv_tcp_bind(server, addr, 0); if (err == 0) { - err = uv_listen(reinterpret_cast<uv_stream_t*>(server), 1, + // 511 is the value used by a 'net' module by default + err = uv_listen(reinterpret_cast<uv_stream_t*>(server), 511, ServerSocket::SocketConnectedCallback); } if (err == 0) { |