Skip to content

Commit

Permalink
adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
yueyoum committed Apr 20, 2015
1 parent 53e62ee commit 0f63641
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/mpc_app.erl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ start(_StartType, _StartArgs) ->
{ok, HttpLSock} = gen_tcp:listen(HttpPort, [binary,
{ip, {0, 0, 0, 0}},
{reuseaddr, true},
{active, false},
{active, once},
{backlog, 256}]),

case mpc_sup:start_link([Socks5LSock, HttpLSock]) of
Expand Down
2 changes: 1 addition & 1 deletion client/src/mpc_http_child.erl
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ handle_cast(_Info, State) ->
handle_info(timeout, #state{lsock = LSock, socket = undefined} = State) ->
{ok, Socket} = gen_tcp:accept(LSock),
mpc_http_sup:start_child(),
{ok, State#state{socket = Socket}, ?TIMEOUT};
{noreply, State#state{socket = Socket}, ?TIMEOUT};


handle_info(timeout, #state{socket = Socket} = State) when is_port(Socket) ->
Expand Down

0 comments on commit 0f63641

Please sign in to comment.