Commit Graph

1668 Commits

Author SHA1 Message Date
zhouzb
decdce2ae2 Fix unused variable 2019-09-16 18:54:34 +08:00
zhouzb
600cd11f1f Rename connection to conninfo 2019-09-16 17:22:50 +08:00
zhouzb
1667cbd359 Fix test cases 2019-09-16 16:05:06 +08:00
tigercl
fc553b8cee
Merge pull request #2803 from emqx/fix_msg_expiry
Fix Message-Expiry-Interval not working
2019-09-16 14:45:22 +08:00
Feng Lee
4764a7707c Rewrite the emqx_packet module and improve channel pipeline (#2903)
Add use_username_as_clientid/1 function and Improve function 'pipeline/3'
2019-09-16 14:17:36 +08:00
Feng Lee
681ae511a8 Introduce the 'strict_mode' option and validate MQTT header (#2898)
Introduce the 'strict_mode' option and validate MQTT header
2019-09-16 14:02:31 +08:00
tigercl
35822ff97a
Fix handling for MQTT spec (#2892)
Fix invalid QoS and protocol name, fix handling for Topic-Alias-Maximum and Maximum-Packet-Size, and send DISCONNECT Packet to client when the session is taken over
2019-09-16 13:51:50 +08:00
Shawn
59309e6c11
Add print and usage APIs for CLI (#2893) 2019-09-12 09:35:05 +08:00
Feng Lee
80621ec9be Fix the test cases for emqx_banned, emqx_flapping modules
- Remove the 'is_enabled/1' function of 'emqx_banned' module
- Remove the 'is_enabled/1' function of 'emqx_flapping' module
- Add 'enable_acl/1', 'enable_banned/1' and 'enable_flapping_detect/1'
2019-09-11 09:14:58 +08:00
Feng Lee
fa516626a6 Inlining is enabled for encode, decode functions. 2019-09-11 09:13:42 +08:00
Feng Lee
594153c0fb Merge branch 'boot' into develop 2019-09-10 16:26:20 +08:00
Feng Lee
2bf951d953 Fix the spec of function 'is_enabled/1' 2019-09-10 16:24:38 +08:00
Feng Lee
a3daa533e7 Add a test case for the new flapping module 2019-09-10 16:20:56 +08:00
Feng Lee
0a1679b122
Implement a new flapping module (#2884) 2019-09-10 15:21:08 +08:00
Feng Lee
88321fe6fe Remove the emqx_config module
- Remove the emqx_config module
- Move get_env/1, get_env/2 to emqx module
2019-09-09 10:18:10 +08:00
Feng Lee
6972cbb36e Fix the operator precedence bug 2019-09-06 19:04:11 +08:00
Feng Lee
b97f04ceae Add emqx_boot module 2019-09-06 17:37:50 +08:00
Feng Lee
6e18f8543d Add emqx_boot module 2019-09-06 17:36:13 +08:00
zhouzb
5a3645c97e Remove proto_ver field stored in the headers of message 2019-09-06 14:51:52 +08:00
Michael Schmidt
3038bd4570 Add support for logger per module filtering (#2873)
Add mfa to the meta data to suppor the Erlang Logger's per module / per app filtering
2019-09-06 11:03:47 +08:00
zhouzb
066763248c Fix dup flag 2019-09-05 18:35:29 +08:00
zhouzb
de44a89c21 Fix the issue that protocol is undefined 2019-09-05 18:28:17 +08:00
terry-xiaoyu
1e4c51f080 Send DISCONNECT on packet parse error 2019-09-05 18:16:15 +08:00
zhouzb
cc4ee065a4 Remove debug print 2019-09-05 16:16:19 +08:00
terry-xiaoyu
983973c841 Fix set_chan_stats incorrect 2019-09-05 15:59:18 +08:00
Feng Lee
451f0451ce Add type/1, qos/1 functions 2019-09-05 15:00:54 +08:00
Feng Lee
847375d2fb Improve connection and channel modules (#2860)
Improve the connection and channel modules
2019-09-05 14:17:15 +08:00
tigercl
811e85f8b7
Merge pull request #2841 from emqx/init_stats
Set stats at connection time
2019-09-05 14:03:51 +08:00
Feng Lee
2d6c7e41a5 Remove emqx_cli module 2019-09-02 09:04:34 +08:00
Feng Lee
62f0f0ccbc Add more test cases for 'emqx_misc' module 2019-08-28 14:29:44 +08:00
Feng Lee
08ab350fec Move the 'pipeline' function to 'emqx_misc' module 2019-08-28 14:29:44 +08:00
GilbertWong
783e29d6f7 Add test case for emqx_mod_rewrite 2019-08-28 11:19:51 +08:00
Feng Lee
a4e9142979 Updat app file 2019-08-27 09:27:25 +08:00
zhouzb
98072dd3d1 Set stats at connection time 2019-08-26 16:43:08 +08:00
turtled
29d49b4073 Fix get connected_at is undefined 2019-08-23 20:37:04 +08:00
zhouzb
5cfd8b74bc Fix a bug that crash when protocol is undefined 2019-08-23 17:29:48 +08:00
zhouzb
9c171f5d9c Fix a bug that session terminates immediately when received DISCONNECT packet 2019-08-23 16:08:26 +08:00
zhouzb
970d243d94 Fix function clause 2019-08-23 15:23:00 +08:00
tigercl
7151ae9823
Merge pull request #2836 from emqx/fix-discard
Fix case clause error
2019-08-23 15:18:24 +08:00
Feng Lee
710302f377 Fix case clause error 2019-08-23 14:52:11 +08:00
tigercl
ebc1bd77a9
Send the will message immediately when the network connection is closed by the client (#2834)
Send the will message immediately when the network connection is closed by the client
2019-08-23 14:41:52 +08:00
Feng Lee
738145677a Handle the 'discard' cast. 2019-08-23 14:31:33 +08:00
tigercl
9f7cc80c1a
Merge pull request #2833 from emqx/update_code
Update emqx_channel.erl
2019-08-23 14:09:42 +08:00
Feng Lee
82b9a7c301 Improve session takeover (#2831)
Implement the session takover/resumption across nodes
2019-08-23 14:09:00 +08:00
zhouzb
44d53ecb33 Update emqx_channel.erl 2019-08-23 13:48:17 +08:00
zhouzb
f3a92f35f6 Handle will message correctly 2019-08-23 13:37:35 +08:00
zhouzb
cff120c6d0 Handle session expiry interval correctly 2019-08-23 13:37:35 +08:00
Zhiwei Yu
8710df31b2 Monitor cluster partition event (#2814) 2019-08-23 09:42:55 +08:00
Feng Lee
c69a2b1b48 Ensure session expiration (#2825)
Ensure session expiration
2019-08-23 09:35:29 +08:00
Feng Lee
41e9dad70a Rename reason field to stop_reason 2019-08-22 23:24:16 +08:00