Navigation Menu

Skip to content

Commit

Permalink
increase erlang tcp backlog from 5 to 128
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed May 13, 2010
1 parent 3ca43e1 commit 171332d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elib/ernie_server.erl
Expand Up @@ -115,7 +115,7 @@ try_listen(Port, 0) ->
error_logger:error_msg("Could not listen on port ~p~n", [Port]),
{error, "Could not listen on port"};
try_listen(Port, Times) ->
Res = gen_tcp:listen(Port, [binary, {packet, 4}, {active, false}, {reuseaddr, true}]),
Res = gen_tcp:listen(Port, [binary, {packet, 4}, {active, false}, {reuseaddr, true}, {backlog, 128}]),
case Res of
{ok, LSock} ->
error_logger:info_msg("Listening on port ~p~n", [Port]),
Expand Down

0 comments on commit 171332d

Please sign in to comment.