Skip to content

Commit

Permalink
this is going to be a lot of data, so we need to make sure our networ…
Browse files Browse the repository at this point in the history
…k and scribe can handle this
  • Loading branch information
Emad El-Haraty committed Nov 1, 2010
1 parent ff2cdc9 commit 8a6ad73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mochiweb_socket_server.erl
Expand Up @@ -210,9 +210,13 @@ handle_call(_Message, _From, State) ->
Res = error,
{reply, Res, State}.

handle_cast({accepted, Pid, _Timing},
handle_cast({accepted, Pid, Timing},
State=#mochiweb_socket_server{active_sockets=ActiveSockets}) ->
State1 = State#mochiweb_socket_server{active_sockets=1 + ActiveSockets},
udplog:log(mochiweb, [{type, accept}, {time_elapsed, Timing},
{port, State1#mochiweb_socket_server.port},
{active_sockets, State1#mochiweb_socket_server.active_sockets},
{name, State1#mochiweb_socket_server.name}]),
{noreply, recycle_acceptor(Pid, State1)};
handle_cast(stop, State) ->
{stop, normal, State}.
Expand Down

0 comments on commit 8a6ad73

Please sign in to comment.