Merge branch 'master' into dev
This commit is contained in:
commit
0a4a241be1
16
CHANGELOG.md
16
CHANGELOG.md
|
|
@ -1,10 +1,20 @@
|
||||||
eMQTT ChangeLog
|
eMQTT ChangeLog
|
||||||
==================
|
==================
|
||||||
|
|
||||||
TODO: 0.2.1 (2014-12-31)
|
v0.2.1-beta (2015-01-08)
|
||||||
-------------------
|
------------------------
|
||||||
|
|
||||||
Pass MQTT 3.1.1 Tests
|
pull request 26: Use binaries for topic paths and fix wildcard topics
|
||||||
|
|
||||||
|
emqtt_pubsub.erl: fix wildcard topic match bug caused by binary topic in 0.2.0
|
||||||
|
|
||||||
|
Makefile: deps -> get-deps
|
||||||
|
|
||||||
|
rebar.config: fix mochiweb git url
|
||||||
|
|
||||||
|
tag emqtt release accoding to [Semantic Versioning](http://semver.org/)
|
||||||
|
|
||||||
|
max clientId length is 1024 now.
|
||||||
|
|
||||||
0.2.0 (2014-12-07)
|
0.2.0 (2014-12-07)
|
||||||
-------------------
|
-------------------
|
||||||
|
|
|
||||||
6
Makefile
6
Makefile
|
|
@ -1,9 +1,9 @@
|
||||||
all: dep compile
|
all: get-deps compile
|
||||||
|
|
||||||
compile: dep
|
compile: get-deps
|
||||||
./rebar compile
|
./rebar compile
|
||||||
|
|
||||||
dep:
|
get-deps:
|
||||||
./rebar get-deps
|
./rebar get-deps
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
||||||
29
README.md
29
README.md
|
|
@ -77,7 +77,25 @@ When nodes clustered, vm.args should be configured as below:
|
||||||
-name emqtt@host1
|
-name emqtt@host1
|
||||||
```
|
```
|
||||||
|
|
||||||
......
|
## Cluster
|
||||||
|
|
||||||
|
Suppose we cluster two nodes on 'host1', 'host2', Steps:
|
||||||
|
|
||||||
|
on 'host1':
|
||||||
|
|
||||||
|
```
|
||||||
|
./bin/emqtt start
|
||||||
|
```
|
||||||
|
|
||||||
|
on 'host2':
|
||||||
|
|
||||||
|
```
|
||||||
|
./bin/emqtt start
|
||||||
|
|
||||||
|
./bin/emqtt_ctl cluster emqtt@host1
|
||||||
|
```
|
||||||
|
|
||||||
|
Run './bin/emqtt_ctl cluster' on 'host1' or 'host2' to check cluster nodes.
|
||||||
|
|
||||||
## Cluster
|
## Cluster
|
||||||
|
|
||||||
|
|
@ -124,7 +142,7 @@ message | Text Message
|
||||||
|
|
||||||
## Design
|
## Design
|
||||||
|
|
||||||
[Design Wiki](https://github.com/slimpp/emqtt/wiki)
|
[Design Wiki](https://github.com/emqtt/emqtt/wiki)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
@ -132,5 +150,10 @@ The MIT License (MIT)
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
feng at slimchat.io
|
feng at emqtt.io
|
||||||
|
|
||||||
|
## Thanks
|
||||||
|
|
||||||
|
@hejin1026 (260495915 at qq.com)
|
||||||
|
@desoulter (assoulter123 at gmail.com)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -247,10 +247,10 @@ trie_match(NodeId, [W|Words], ResAcc) ->
|
||||||
[#topic_trie{node_id=ChildId}] -> trie_match(ChildId, Words, Acc);
|
[#topic_trie{node_id=ChildId}] -> trie_match(ChildId, Words, Acc);
|
||||||
[] -> Acc
|
[] -> Acc
|
||||||
end
|
end
|
||||||
end, 'trie_match_#'(NodeId, ResAcc), [W, "+"]).
|
end, 'trie_match_#'(NodeId, ResAcc), [W, <<"+">>]).
|
||||||
|
|
||||||
'trie_match_#'(NodeId, ResAcc) ->
|
'trie_match_#'(NodeId, ResAcc) ->
|
||||||
case mnesia:read(topic_trie, #topic_trie_edge{node_id=NodeId, word="#"}) of
|
case mnesia:read(topic_trie, #topic_trie_edge{node_id=NodeId, word = <<"#">>}) of
|
||||||
[#topic_trie{node_id=ChildId}] ->
|
[#topic_trie{node_id=ChildId}] ->
|
||||||
mnesia:read(topic_trie_node, ChildId) ++ ResAcc;
|
mnesia:read(topic_trie_node, ChildId) ++ ResAcc;
|
||||||
[] ->
|
[] ->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue