0.9.0 project structure
This commit is contained in:
commit
986bf5d911
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -5,6 +5,12 @@ emqttd ChangeLog
|
||||||
0.9.0-alpha (2015-06-14)
|
0.9.0-alpha (2015-06-14)
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
|
Session and Queue
|
||||||
|
|
||||||
|
Merge emqtt, emqttd apps
|
||||||
|
|
||||||
|
Move apps/emqttd/src src
|
||||||
|
|
||||||
Session
|
Session
|
||||||
|
|
||||||
Queue
|
Queue
|
||||||
|
@ -14,10 +20,10 @@ Alarm
|
||||||
Protocol Compliant
|
Protocol Compliant
|
||||||
|
|
||||||
|
|
||||||
0.8.6-beta (2015-06-15)
|
0.8.6-beta (2015-06-17)
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
Bugfix: issue #175 - should publish Will message when websocket is closed without 'DISCONNECT' packet
|
Bugfix: issue #175 - publish Will message when websocket is closed without 'DISCONNECT' packet
|
||||||
|
|
||||||
|
|
||||||
0.8.5-beta (2015-06-10)
|
0.8.5-beta (2015-06-10)
|
||||||
|
|
8
TODO
8
TODO
|
@ -1,4 +1,12 @@
|
||||||
|
|
||||||
|
|
||||||
|
v0.9.0-alpha (2015-05-30)
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
Redis
|
||||||
|
|
||||||
|
MySQL
|
||||||
|
|
||||||
v0.9.0-alpha (2015-05-30)
|
v0.9.0-alpha (2015-05-30)
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
|
|
|
@ -289,16 +289,8 @@ shutdown(duplicate_id, _State) ->
|
||||||
shutdown(_, #proto_state{clientid = undefined}) ->
|
shutdown(_, #proto_state{clientid = undefined}) ->
|
||||||
ignore;
|
ignore;
|
||||||
|
|
||||||
%%TODO:
|
|
||||||
shutdown(normal, #proto_state{peername = Peername, clientid = ClientId, will_msg = WillMsg}) ->
|
|
||||||
lager:info([{client, ClientId}], "Client ~s@~s: normal shutdown",
|
|
||||||
[ClientId, emqttd_net:format(Peername)]),
|
|
||||||
try_unregister(ClientId),
|
|
||||||
send_willmsg(ClientId, WillMsg),
|
|
||||||
emqttd_broker:foreach_hooks(client_disconnected, [normal, ClientId]);
|
|
||||||
|
|
||||||
shutdown(Error, #proto_state{peername = Peername, clientid = ClientId, will_msg = WillMsg}) ->
|
shutdown(Error, #proto_state{peername = Peername, clientid = ClientId, will_msg = WillMsg}) ->
|
||||||
lager:info([{client, ClientId}], "Protocol ~s@~s: Shutdown for ~p",
|
lager:info([{client, ClientId}], "Client ~s@~s: shutdown ~p",
|
||||||
[ClientId, emqttd_net:format(Peername), Error]),
|
[ClientId, emqttd_net:format(Peername), Error]),
|
||||||
send_willmsg(ClientId, WillMsg),
|
send_willmsg(ClientId, WillMsg),
|
||||||
try_unregister(ClientId),
|
try_unregister(ClientId),
|
||||||
|
|
Loading…
Reference in New Issue