Skip to content

Commit

Permalink
Set default backlog size to 511
Browse files Browse the repository at this point in the history
Match Node's default backlog of 511 sockets (see https://nodejs.org/dist/latest-v9.x/docs/api/net.html#net_server_listen)
This helps address mafintosh#8 and mafintosh/turbo-http#12
  • Loading branch information
pietermees authored Mar 18, 2018
1 parent 073b99c commit 912d0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/turbo_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ NAPI_METHOD(turbo_net_tcp_listen) {
))

// TODO: research backlog
NAPI_UV_THROWS(err, uv_listen(TURBO_NET_STREAM, 5, on_uv_connection));
NAPI_UV_THROWS(err, uv_listen(TURBO_NET_STREAM, 511, on_uv_connection));

return NULL;
}
Expand Down

0 comments on commit 912d0b1

Please sign in to comment.