fix client
This commit is contained in:
parent
a77bbf33e2
commit
cc67e10e69
2
Makefile
2
Makefile
|
@ -1,7 +1,7 @@
|
||||||
all: compile
|
all: compile
|
||||||
|
|
||||||
run: compile
|
run: compile
|
||||||
erl -pa ebin -config etc/emqtt.config -s emqtt_app start
|
erl -pa ebin -pa lib/rabbitlib/ebin -config etc/emqtt.config -s emqtt_app start
|
||||||
|
|
||||||
compile: deps
|
compile: deps
|
||||||
rebar compile
|
rebar compile
|
||||||
|
|
|
@ -24,6 +24,7 @@ init([]) ->
|
||||||
|
|
||||||
handle_call({go, Sock}, _From, State) ->
|
handle_call({go, Sock}, _From, State) ->
|
||||||
error_logger:info_msg("go.... sock: ~p", [Sock]),
|
error_logger:info_msg("go.... sock: ~p", [Sock]),
|
||||||
|
inet:setopts(Sock, [{active, true}]),
|
||||||
{reply, ok, State}.
|
{reply, ok, State}.
|
||||||
|
|
||||||
handle_cast(Msg, State) ->
|
handle_cast(Msg, State) ->
|
||||||
|
|
Loading…
Reference in New Issue