Skip to content

Commit

Permalink
Changing the acceptor stuff to be less strict
Browse files Browse the repository at this point in the history
For our needs, this actually helps us serve a higher load with
no visible downside.
  • Loading branch information
ferd committed Apr 17, 2012
1 parent 43e0ba0 commit e46e802
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cowboy_acceptor.erl
Expand Up @@ -38,10 +38,7 @@ acceptor(LSocket, Transport, Protocol, Opts, MaxConns, ListenerPid, ReqsSup) ->
{ok, Pid} = supervisor:start_child(ReqsSup,
[ListenerPid, CSocket, Transport, Protocol, Opts]),
Transport:controlling_process(CSocket, Pid),
{ok, NbConns} = cowboy_listener:add_connection(ListenerPid,
default, Pid),
Pid ! shoot,
limit_reqs(ListenerPid, NbConns, MaxConns);
Pid ! shoot;
{error, timeout} ->
ignore;
{error, _Reason} ->
Expand Down

0 comments on commit e46e802

Please sign in to comment.