Commit Graph

3833 Commits

Author SHA1 Message Date
GilbertWong
bcae452e42 Fix the flapping bug
Prior to this change, the banned until value will not be set
correctly because of wrong spell of config entry name .

This change fix this bug
2019-06-20 10:59:42 +08:00
GilbertWong
ffbb598a73 Increase time precision for emqx_mod_presence 2019-06-20 09:50:05 +08:00
Feng Lee
3877c4db1a Merge branch 'channel2' into channel3 2019-06-18 16:49:26 +08:00
Feng Lee
7774b85f81 Implement the channel architecture 2019-06-18 15:03:51 +08:00
terry-xiaoyu
ebeb2c5545 Compile emqx_logger first 2019-06-18 14:37:32 +08:00
terry-xiaoyu
09dd65b9fa Add logger header validation 2019-06-18 14:37:32 +08:00
terry-xiaoyu
7092748266 Improve log messages using logger header 2019-06-18 14:37:32 +08:00
terry-xiaoyu
c64751a53c Support module level logger header 2019-06-18 14:37:32 +08:00
Feng Lee
21162f88b8 Update copyright 2019-06-18 14:27:06 +08:00
Feng Lee
d065847665 Remove session record 2019-06-16 10:28:23 +08:00
terry-xiaoyu
3f1b788fe8 Remove unused PSK TAB macro 2019-06-14 16:58:46 +08:00
GilbertWong
19822c15bd Add websocket_info to match {stop, Reason} msg 2019-06-14 16:22:57 +08:00
Feng Lee
1d88f8fd9e Improve the emqx_connection, emqx_ws_connection and emqx_frame modules (#2611)
* Adopt channel architecture and improve the MQTT frame parser

* Update the test cases for emqx_channel, emqx_protocol

- Improve emqx_client to Use the new emqx_frame:parse/2
- Update the ct suites for emqx_channel, emqx_ws_channel

* Fix test case
2019-06-14 12:44:27 +08:00
Gilbert
d3e7d1f0c9 Fix websocket bug (#2615)
Fix websocket bug.

Prior to this change, websocket connection would be closed directly
without sending connack packet when acl check fails.

This change fix this bug.
2019-06-14 11:33:44 +08:00
terry-xiaoyu
c4de0b1792 No chars limit by default 2019-06-13 13:53:59 +08:00
turtleDeng
a3103cec7b Revert "Fix websocket bug. Prior to this change, websocket connection would be closed directly without sending connack packet when acl check fails."
This reverts commit e73c4c64d0.
2019-06-12 15:51:20 +08:00
GilbertWong
e73c4c64d0 Fix websocket bug.
Prior to this change, websocket connection would be closed directly
without sending connack packet when acl check fails.

This change fix this bug.
2019-06-12 15:49:48 +08:00
turtleDeng
76525cc703
Fix acl deny action logic (#2613) 2019-06-12 15:49:18 +08:00
tigercl
3462bbd619 Fix retain in will message (#2607)
* Fix retain in will message

* Only handle retain available flag in MQTT v5
2019-06-12 15:43:52 +08:00
Feng Lee
de978d4771 Update the test cases for emqx_channel, emqx_protocol
- Improve emqx_client to Use the new emqx_frame:parse/2
- Update the ct suites for emqx_channel, emqx_ws_channel
2019-06-12 10:31:44 +08:00
Feng Lee
d386b27e8a Adopt channel architecture and improve the MQTT frame parser 2019-06-11 23:18:38 +08:00
Feng Lee
f801ff1e53 Optimize metrics using counters and persistent_term (#2597)
* Optimize emqx_metrics module using persistent_term and counters in OTP 22
2019-06-05 23:16:35 +08:00
turtled
f46205daff Restart mnesia application 2019-06-05 11:50:09 +08:00
Gilbert Wong
f3fcd16dee Fix wrong default value in protocol module 2019-06-03 16:25:04 +08:00
Gilbert Wong
e7cd32edb7 Update esockd deps and fix compile warning 2019-05-31 15:21:59 +08:00
Gilbert Wong
47f9d0e90f Adjust format 2019-05-31 11:16:50 +08:00
Gilbert Wong
365832f945 Use new ranch api to elimate warning log for deprecated apis 2019-05-31 11:16:50 +08:00
Feng Lee
9715234626 Optimize the emqx_zone module using persistent_term
- Don't reload the zone options for updating persistent_term is
expensive
- Use '{?MODULE, Zone, Key}' as the key to avoid name collision
2019-05-31 08:53:42 +08:00
terry-xiaoyu
e29cde60a9 Update ekka to v0.5.5 2019-05-30 18:58:37 +08:00
terry-xiaoyu
be7de756c6 Stop alarm before emqx stops 2019-05-28 17:11:31 +08:00
Gilbert
0857b976ed Better zone (#2548) 2019-05-25 22:29:23 +08:00
HeeeJianBo
87ffa77ade Fix lookup_session_pids return data type error 2019-05-25 22:28:34 +08:00
spring2maz
ac0e637a4b Delete APPLICATION macro from erl-opts in rebar.config 2019-05-24 10:16:10 +08:00
turtled
54f2a768a8 Rm start logger:set_primary_config 2019-05-23 10:51:21 +08:00
Gilbert Wong
1c83270184 Add case clause for emqx_sn and emqx_coap plugin 2019-05-21 11:19:52 +08:00
Gilbert Wong
3f53c3822d Fix ct rule in makefile 2019-05-17 10:27:14 +08:00
HeeeJianBo
caa582a028 Revert the PR #2355
- Add anonymous field for credentials
2019-05-15 15:04:27 +08:00
JianBo He
1a92f3259f Enable cert_as_username to pass value to username_as_clientid (#2536) 2019-05-15 10:20:04 +08:00
JianBo He
79c1b7eb78
Put sockname to credentials (#2532)
* Add sockname to credentials

* Explicit credentials type define
2019-05-14 10:22:30 +08:00
JianBo He
97cca1a5ba Set {active, N} for ssl connection (#2531) 2019-05-13 10:18:01 +08:00
turtleDeng
311f1e6df1
Merge pull request #2521 from emqx/develop-3.2 2019-05-09 11:16:14 +08:00
Gilbert Wong
8065cafe1d Restore app.confg rule in makefile for debug and test 2019-05-08 21:18:24 +08:00
Gilbert Wong
fc6f54602d Fix plugin load bug 2019-05-08 14:23:12 +08:00
tigercl
7e0ac5bd34
Fix bad config type of long_gc (#2504) 2019-05-08 10:19:49 +08:00
terry-xiaoyu
7b356e80f4 Rename varibles 2019-05-07 17:27:06 +08:00
terry-xiaoyu
a1eb7ca7d2 Adapt max-heap-size to Arch-32 systems
The erlang:process_flag(max_heap_size, MaxHeapSize) can only set a MaxHeapSize of `small integer`, which is smaller than 2^59 on 64-bit systems, and 2^27 on 32-bit systems.
2019-05-07 17:27:06 +08:00
tigercl
b4c659fb54 Add suboptions for stats (#2507) 2019-05-06 19:17:54 +08:00
Gilbert Wong
3ece73b912 Reuse plugin filter logic to adapt to emqx rebar3 release 2019-05-06 13:34:55 +08:00
terry-xiaoyu
0ea6697a57 Enlarge chars_limit to 8192 2019-05-05 21:28:59 +08:00
spring2maz
b040d37a40 Merge remote-tracking branch 'origin/develop' into develop-3.2 2019-05-05 12:43:32 +02:00