Gilbert Wong
45b2686e1c
Delete unnecessary code
...
Prior to this change, there are multiple deprecated functions.
2018-09-14 09:45:34 +08:00
HuangDan
fde6a2a4c3
Fixed issue #1811
...
Add tests case for issue #1811
2018-09-13 22:55:15 +08:00
spring2maz
8db9f3e81d
Update & clarify module doc for emqx_mqueue.erl
2018-09-13 09:08:07 +08:00
spring2maz
0c39a7620e
Rebar3 and erlang.mk dual support. ( #1806 )
...
* Rebar3 and erlang.mk dual support.
There was only erlang.mk support prior to this change.
The main reasons for this dual support are:
* Cover report upload can only be done by rebar3 in travis.ci
* We want to prepare for the future to build emqx releases using rebar3
* We do not want to stop supporting erlang.mk in one single step
* Add depencency version consistency check between erlang.mk and rebar.config
2018-09-09 21:51:42 +08:00
周子博
3caa41f751
Add run hook when duplicated subscription
2018-09-08 19:01:03 +08:00
周子博
23c91c0a40
no message
2018-09-08 18:31:44 +08:00
周子博
40977e529a
Retain flag in retained message must set to 1
2018-09-08 18:31:44 +08:00
Gilbert Wong
78020de302
fix pattern match bu
...
Prior to this change, when packet have topic alias, the check_pub_caps
function could not be matched correctly
This change fix this bug.
2018-09-08 12:50:14 +08:00
Gilbert Wong
2d10d6971d
add pattern match for topic alias
...
Prior to this change, it assume that topic_alias exists defaultly
which may cause the unexpected bug
This change fix this bug above
2018-09-08 12:01:22 +08:00
terry-xiaoyu
2121da3755
Ignore Will-Delay-Interval = 0
2018-09-08 10:10:22 +08:00
turtleDeng
0ec461484e
Merge pull request #1790 from emqx/emqx30-feng
...
Improve the Hooks' design
2018-09-07 21:46:30 +08:00
turtleDeng
66e9f9b02a
Merge pull request #1789 from Gilbert-Wong/emqx30
...
Check topic alias
2018-09-07 21:44:20 +08:00
turtleDeng
5ca61dd45c
Merge pull request #1788 from tigercl/emqx30
...
Support retain as published in subscription options
2018-09-07 21:43:56 +08:00
Gilbert
84e43c587d
Merge branch 'emqx30' into emqx30
2018-09-07 18:49:11 +08:00
周子博
6f6e24592b
Fix the reverse match
2018-09-07 18:32:03 +08:00
turtleDeng
ba176f2073
Merge pull request #1797 from terry-xiaoyu/banned_api_v2
...
Update for banned API
2018-09-07 17:50:30 +08:00
周子博
1326e89593
Fix a bug in emqx_protocol.erl
2018-09-07 15:16:32 +08:00
terry-xiaoyu
dd8513ad35
Update for banned API
...
Use `mnesia:foldl` to traverse mnesia rather than `mnesia:first` and
`mnesia:next`, as a badarg exception would occur if the record was
deleted while travering the whole table.
2018-09-07 14:10:16 +08:00
周子博
f8471afb97
Add handling of retain handling subscription option
2018-09-07 13:50:12 +08:00
Feng Lee
304a24ca6a
Code Review: Update the zone module
...
1. Add force_reload/0 management API
2. Change the reload interval to 5 minutes
2018-09-07 10:26:14 +08:00
Feng Lee
d9ad29476a
Code Review: Update the zone module
...
1. Add force_reload/1 API
2. Change the default reload interval to 5 minutes
2018-09-07 10:23:43 +08:00
周子博
d819ec0b58
Comment unused function in emqx_frame.erl
2018-09-07 10:18:21 +08:00
Gilbert Wong
765ab5ad7b
Add condition to handle when mqx_topic_alias do not exist
2018-09-06 19:09:29 +08:00
Feng Lee
328d035dab
Replace 'state' record with map
2018-09-06 18:43:47 +08:00
周子博
f95c82e37a
Add metric for DISCONNECT packet
2018-09-06 18:14:14 +08:00
Feng Lee
edf654727c
Rename emqx_mqtt_properties module to emqx_mqtt_props
2018-09-06 18:09:22 +08:00
Feng Lee
d99d0a22d0
Rename 'ignore' to 'ignored'
2018-09-06 17:54:32 +08:00
周子博
917eb8e29f
Make DISCONNECT packet with reason code 0x00 when this packet doesn't have payload
2018-09-06 17:17:09 +08:00
Feng Lee
2a75105580
Improve the Hooks's design
2018-09-06 16:27:16 +08:00
Gilbert Wong
c145cb89f4
add validate_properties for PUBLISH and fix error for SUB
2018-09-06 15:45:18 +08:00
周子博
42b3c9b4d6
Send DISCONNECT packet with reason code PROTOCOL_ERROR when topic is empty, add checks for topics
2018-09-06 14:47:34 +08:00
Gilbert Wong
9189d4ff41
catch topic_alias_invalid reasoncode
2018-09-06 14:24:07 +08:00
Gilbert Wong
876a983e93
Pub Packet delivered from client to server cannot contain sub id
2018-09-06 13:37:26 +08:00
Feng Lee
5e3aed0b73
Add ok_or_error/1 type
2018-09-06 09:10:47 +08:00
Feng Lee
4635921458
Rewrite the hooks module
2018-09-05 23:21:06 +08:00
Gilbert Wong
c8b92a59b1
check topic alias
2018-09-05 19:06:34 +08:00
周子博
9029ee29d3
Drop will msg when receive the DISCONNECT packet whose reason code is equal to 0x00
2018-09-05 18:03:28 +08:00
周子博
47955f4309
fix bug in retain as published flag
2018-09-05 15:18:26 +08:00
周子博
aa34258f1e
Support Retain As Published in Subscription Options
2018-09-05 14:25:33 +08:00
周子博
f0f818ab1a
Fix bug in emqx_frame
2018-09-05 10:28:49 +08:00
Feng Lee
96122cf966
Rename 'already_existed' to 'already_exists'
2018-09-04 19:14:25 +08:00
周子博
842f4fbf13
Crash when reserved flag in CONNECT packet doesn't equal to 0, and remove repeated check for protocol version
2018-09-04 11:16:15 +08:00
chenyy
abc6081282
fix error spelling word
2018-09-01 11:54:28 +08:00
terry-xiaoyu
ec456dcc73
Fix dialyze issue
2018-08-31 20:48:57 +08:00
terry-xiaoyu
3f42f1271b
bug fix
2018-08-31 18:14:10 +08:00
Feng Lee
880c6ab5fe
Fix typo
2018-08-31 17:27:36 +08:00
Feng Lee
ec7b39f3fd
Merge pull request #1777 from emqtt/emqx30-dialyzer
...
Add banned support, and fix dialyzer errors
2018-08-31 16:58:57 +08:00
Feng Lee
7c45d988f2
Update the spec of deliver/2 function
2018-08-31 16:57:43 +08:00
Feng Lee
ea1ae70833
Fix errors found by dialyzer
2018-08-31 16:46:51 +08:00
Gilbert Wong
e6fd7faa4b
add format_variable for disconnect packet
2018-08-31 16:24:10 +08:00