Merge branch 'master' into dev

This commit is contained in:
Feng 2015-06-05 18:35:10 +08:00
commit 0407d902d6
10 changed files with 23 additions and 14 deletions

View File

@ -2,6 +2,16 @@
emqttd ChangeLog emqttd ChangeLog
================== ==================
0.8.3-beta (2015-06-05)
-------------------------
Bugfix: issue #158 - should queue:in new message after old one dropped
Bugfix: issue #155 - emqtt_parser.erl: parse_topics/3 should reverse topics
Bugfix: issue #149 - Forget to merge plugins/emqttd_auth_mysql from 'dev' branch to 'master' in 0.8.x release
0.8.2-alpha (2015-06-01) 0.8.2-alpha (2015-06-01)
------------------------- -------------------------

View File

@ -107,7 +107,7 @@ The MIT License (MIT)
[@turtleDeng](https://github.com/turtleDeng) [@turtleDeng](https://github.com/turtleDeng)
[@Hades32](https://github.com/Hades32) [@Hades32](https://github.com/Hades32)
[@huangdan](https://github.com/huangdan) [@huangdan](https://github.com/huangdan)
[@callbay](https://github.com/callbay)
## Author ## Author

View File

@ -1,7 +1,7 @@
{application, emqtt, {application, emqtt,
[ [
{description, "Erlang MQTT Common Library"}, {description, "Erlang MQTT Common Library"},
{vsn, "0.8.2"}, {vsn, "0.8.3"},
{modules, []}, {modules, []},
{registered, []}, {registered, []},
{applications, [ {applications, [

View File

@ -196,7 +196,7 @@ wrap(Header, Rest) ->
% parse_qos(Rest, [QoS | Acc]). % parse_qos(Rest, [QoS | Acc]).
parse_topics(_, <<>>, Topics) -> parse_topics(_, <<>>, Topics) ->
Topics; lists:reverse(Topics);
parse_topics(?SUBSCRIBE = Sub, Bin, Topics) -> parse_topics(?SUBSCRIBE = Sub, Bin, Topics) ->
{Name, <<_:6, QoS:2, Rest/binary>>} = parse_utf(Bin), {Name, <<_:6, QoS:2, Rest/binary>>} = parse_utf(Bin),
parse_topics(Sub, Rest, [{Name, QoS}| Topics]); parse_topics(Sub, Rest, [{Name, QoS}| Topics]);

View File

@ -1,7 +1,7 @@
{application, emqttd, {application, emqttd,
[ [
{description, "Erlang MQTT Broker"}, {description, "Erlang MQTT Broker"},
{vsn, "0.8.2"}, {vsn, "0.8.3"},
{modules, []}, {modules, []},
{registered, []}, {registered, []},
{applications, [kernel, {applications, [kernel,

View File

@ -25,7 +25,7 @@
%%% @end %%% @end
%%%----------------------------------------------------------------------------- %%%-----------------------------------------------------------------------------
%% TODO: this module should be removed... %% TODO: this module should be rewrited...
-module(emqttd_queue). -module(emqttd_queue).
@ -69,12 +69,12 @@ in(ClientId, Message = #mqtt_message{qos = Qos},
false -> % full false -> % full
if if
Qos =:= ?QOS_0 -> Qos =:= ?QOS_0 ->
lager:warning("Queue ~s drop qos0 message: ~p", [ClientId, Message]), lager:error("Queue ~s drop qos0 message: ~p", [ClientId, Message]),
Wrapper; Wrapper;
true -> true ->
{{value, Msg}, Queue1} = queue:drop(Queue), {{value, Msg}, Queue1} = queue:drop(Queue),
lager:warning("Queue ~s drop message: ~p", [ClientId, Msg]), lager:error("Queue ~s drop message: ~p", [ClientId, Msg]),
Wrapper#mqtt_queue_wrapper{queue = Queue1} Wrapper#mqtt_queue_wrapper{queue = queue:in(Message, Queue1)}
end end
end. end.

View File

@ -20,7 +20,7 @@
%%% SOFTWARE. %%% SOFTWARE.
%%%----------------------------------------------------------------------------- %%%-----------------------------------------------------------------------------
%%% @doc %%% @doc
%%% emqttd client manager supervisor. %%% emqttd session manager supervisor.
%%% %%%
%%% @end %%% @end
%%%----------------------------------------------------------------------------- %%%-----------------------------------------------------------------------------

View File

@ -8,7 +8,7 @@
{encoding, utf8} {encoding, utf8}
]}, ]},
{emqttd_auth_mysql, [ {emqttd_auth_mysql, [
{users_table, mqtt_users}, {user_table, mqtt_users},
{password_hash, plain}, {password_hash, plain},
{field_mapper, [ {field_mapper, [
{username, username}, {username, username},

View File

@ -9,14 +9,13 @@
% {encoding, utf8} % {encoding, utf8}
% ]}, % ]},
% {emqttd_auth_mysql, [ % {emqttd_auth_mysql, [
% {users_table, mqtt_users}, % {user_table, mqtt_users},
% {password_hash, plain}, % {password_hash, plain},
% {field_mapper, [ % {field_mapper, [
% {username, username}, % {username, username},
% {password, password} % {password, password}
% ]} % ]}
% ]} % ]},
%
% {emqttd_dashboard, [ % {emqttd_dashboard, [
% {listener, % {listener,
% {http, 18083, [ % {http, 18083, [

View File

@ -4,7 +4,7 @@
{lib_dirs, ["../apps", "../deps", "../plugins"]}, {lib_dirs, ["../apps", "../deps", "../plugins"]},
{erts, [{mod_cond, derived}, {app_file, strip}]}, {erts, [{mod_cond, derived}, {app_file, strip}]},
{app_file, strip}, {app_file, strip},
{rel, "emqttd", "0.8.2", {rel, "emqttd", "0.8.3",
[ [
kernel, kernel,
stdlib, stdlib,