Commit Graph

3389 Commits

Author SHA1 Message Date
Gilbert
118e67a8ca Fix the rebar-xref error (#2108)
Prior to this change, @emqplus  merged emqx30 to master branch and it
cause some problems. For example, there are still some codes using
lager to print log and there is one local function which is not been
used by other function.

This change fix this issue.
2018-12-28 09:22:26 +08:00
Feng Lee
ff9fccdb07 Merge branch 'emqx30' 2018-12-26 13:14:59 +08:00
Gilbert
1797aadbe7 Fix unsuback compat (#2102) 2018-12-22 18:47:38 +08:00
tigercl
edf0ded9f3 Fix bug that no update message expiry interval (#2101) 2018-12-22 11:32:22 +08:00
turtled
f7596b8131 Fix session shutdown bug 2018-12-21 22:44:58 +08:00
Feng Lee
bb45825e77 Inc deliver_stats, enqueue_stats with emqx_pd:update_counter/2 (#2100) 2018-12-21 18:31:04 +08:00
turtled
6f4d517350 Fix conflicts 2018-12-21 17:55:25 +08:00
Feng Lee
f31e7f8bde Replace put/2 with emqx_pd:update_counter/2 (#2098) 2018-12-21 17:47:49 +08:00
turtled
390fae1134 Rm clique dep 2018-12-21 17:09:15 +08:00
turtled
7d3357e0f3 Merge emqx32 2018-12-21 16:01:32 +08:00
YoukiLin
e949e8cbd8 Add format output for test print (#2076)
* Add formatted output for the test print
2018-12-21 15:42:42 +08:00
Feng Lee
10e5210581 Workaround ssl:setopts(SslSock, [{active, N}]) (#2095)
* Set '{active, true}' for SSL socket
2018-12-21 15:39:24 +08:00
tigercl
31bf01fd7a Fix bug in topic alias maximum (#2074)
* Fix bug in topic alias maximum
2018-12-21 14:01:21 +08:00
Feng Lee
3fec9cdf0a Try to simulate a '{ssl_passive, Sock}' message:( 2018-12-21 12:03:40 +08:00
turtleDeng
4f84a31d02
Update copyright (#2093) 2018-12-21 11:06:50 +08:00
Gilbert
bf7f10ecd1 Add will topic validation and acl check (#2075)
* Add will topic validation and acl check
2018-12-21 10:49:03 +08:00
Feng Lee
c93d0fb174 Add test cases for emqx_gc module 2018-12-21 10:28:33 +08:00
Feng Lee
367b717c40 Implement a new 'emqx_gc' module (#2090)
Update connection/session module to using the new emqx_gc API
2018-12-20 22:42:18 +08:00
Gilbert Wong
1007105b57 Delete metrics test in session test suite 2018-12-20 22:31:19 +08:00
turtled
b4833d6973 Fixed conflicts 2018-12-20 22:23:20 +08:00
tigercl
938d30268a Remove extra case...of (#2082)
* Remove extra case...of
2018-12-20 21:42:14 +08:00
YoukiLin
6b538d2363 Add test cases for 'emqx_cm' and 'emqx_sm' (#2073)
Add test cases for 'emqx_cm' and 'emqx_cn'
2018-12-20 21:03:40 +08:00
Feng Lee
14cffcf7fb Add the 'emqx_pd' module
Add utility functions for erlang process dictionary
Add test cases for emqx_pd
2018-12-20 16:45:25 +08:00
Feng Lee
14a12e0c6c Move the 'LOG_HEADER' macro above '-include(logger.hrl)' 2018-12-20 14:45:52 +08:00
Feng Lee
6e1b47f1f9 Improve the emqx_connection module
Rename 'publish_limit' to 'pub_limit'
'try ... of ... catch' to replace 'case catch'
2018-12-20 14:45:52 +08:00
Feng Lee
d827604213 Remove the ensure_stats_timer/1 call from reply/2 and noreply/1 2018-12-20 11:33:18 +08:00
Feng Lee
42fc8f5811 Improve the session module 2018-12-20 10:21:40 +08:00
tigercl
97474171d0 Better report errors in acl.conf (#2065) 2018-12-19 23:06:48 +08:00
turtled
7a1ec580b0 Update broker test cases 2018-12-19 17:18:26 +08:00
Feng Lee
892d9439b9 Implement a new session supervisor. (#2077) 2018-12-19 16:49:35 +08:00
Gilbert
7d9e350bbe Add option to disconnect client in case acl deny (#2059)
* Add option to disconnect client in case acl deny
2018-12-19 10:34:06 +08:00
Shawn
c7fa4b1b15 Revert vm args in emqx conf b (#2070)
* Revert changes in emqx.conf for backward compatibility
2018-12-18 16:50:47 +08:00
turtled
666d9706a3 Fixed conflicts 2018-12-18 16:41:10 +08:00
turtled
1e2c5db36c Modify batch size 2018-12-18 15:42:54 +08:00
Feng Lee
dc06c0beab Remove 'topic_alias_maximum' from session's state 2018-12-18 15:11:04 +08:00
tigercl
95ad67b47c Fix a bug that will not send a will message in some cases (#2068)
* Fix a bug that will not send a will message in some cases
2018-12-18 14:55:37 +08:00
周子博
b7a39f25f2 Revert "Fix a bug that will not send a will message in some cases"
This reverts commit 675edf3fab.
2018-12-18 12:02:18 +08:00
周子博
675edf3fab Fix a bug that will not send a will message in some cases 2018-12-18 12:01:41 +08:00
Feng Lee
721b72b96a Add 'active_n' option to optimize the CPU usage of emqx_connection (#2060)
* Add 'active_n' option to optimize the CPU usage of emqx_connection

* Supports batch processing 'DOWN' events
2018-12-17 19:53:29 +08:00
turtled
f54d414825 Fix pick fail 2018-12-15 13:42:07 +08:00
terry-xiaoyu
52e2c56ce1 Change default configs for max-connections 2018-12-14 18:30:19 +08:00
terry-xiaoyu
3df8de2419 Rename vm.args.cloud -> vm.args 2018-12-14 18:29:52 +08:00
turtled
34370ef622 Merge branch 'issue#1983' into emqx30 2018-12-14 17:55:36 +08:00
terry-xiaoyu
7c7d6b031c Modify the NOTE descripition at the begining of the file 2018-12-14 09:53:13 +08:00
terry-xiaoyu
68a6a88eb9 Move all vm args into separate file vm.args 2018-12-14 09:53:13 +08:00
terry-xiaoyu
14abbf96db Update cuttlefish tag 2018-12-14 09:53:13 +08:00
terry-xiaoyu
d445c17e6c Move some vm args to file vm.args 2018-12-14 09:53:13 +08:00
Feng Lee
abe9aff062 Add 'enable_session_registry' config 2018-12-13 18:28:32 +08:00
Feng Lee
7fe3d59c28 Update the registered name of pool sup. 2018-12-13 17:54:22 +08:00
Feng Lee
4aaf0a7db4 Remove emqx_session_sup to handle massive concurrent sessions 2018-12-13 17:10:02 +08:00