Commit Graph

3507 Commits

Author SHA1 Message Date
Gilbert
e917c025d0
Fix LOG on line 231 2019-04-04 17:38:36 +08:00
JianBo He
aad2d7378e Put peername into messsage headers (#2390)
* Put peername into the message.heaers
2019-04-04 13:41:03 +08:00
Gilbert Wong
287c5582a9 Fix compilation warning 2019-04-03 20:49:45 +08:00
Gilbert Wong
15f8d3208f Fix message dropped
Prior to this change, when store_qos0 option is set to false, the hook
`message.dropped` would not be triggered. It is wrong design and when
the ignore_loop is enabled or nl is set to 1, the hook
`message.dropped` also would not be triggered.
2019-04-03 20:33:58 +08:00
Shawn
2306789755 Remove bin_key_map/1 (#2393)
* Remove bin_key_map/1

* Fix Travis-CI failure
2019-04-03 19:41:21 +08:00
spring2maz
55d2d1d278 Allow boolean flag for loaded plugins
This is to simplify config templating
2019-04-03 19:35:24 +08:00
Feng Lee
60c2b8bc08 Add more functions to read fields of 'message' record
- Add id/1, topic/1, from/1, payload/1 and timestamp/1 functions
- Improve the test cases
2019-04-02 15:15:13 +08:00
HeeeJianBo
2d2520627a Fix topic 'datatype' to 'datetime' 2019-04-01 11:37:22 +08:00
terry-xiaoyu
8be2defb6b Update ekka to v0.5.4 2019-03-30 10:41:48 +08:00
Gilbert Wong
0c64da6da7 Change default log level from info to critical when shutdown 2019-03-29 10:57:52 +08:00
Gilbert
b6fa4d2a3f
Fix bridge subscribe bugs 2019-03-29 10:19:11 +08:00
周子博
f14a56eb17 Fix acl bug in subscribe 2019-03-28 14:04:04 +08:00
Gilbert Wong
7baa317d55 Delete useless assert to pass ci 2019-03-28 13:48:06 +08:00
Gilbert Wong
114b28f973 Delete function clause which would reply {error,standing_by} 2019-03-28 11:47:29 +08:00
Gilbert
0d6b937127 Support proxy protocol of websocket (#2372)
Support proxy protocol of websocket
2019-03-28 10:34:48 +08:00
HeeeJianBo
24f8c3a391 Fix drain the session process mailbox handling err 2019-03-28 10:32:03 +08:00
Gilbert Wong
043f7d5473 Delete duplicated kubernates namespace config entry 2019-03-28 09:44:54 +08:00
周子博
6e3c4b0855 Fix conflict 2019-03-27 13:59:26 +08:00
YoukiLin
fee94525db Add etcd client certificate configuration (#2367)
* Add etcd client certificate
2019-03-27 13:53:40 +08:00
周子博
1decc087a9 Merge branch 'log_level' into develop 2019-03-27 13:52:46 +08:00
Shawn
a3fd8846a5
Bin key map (#2362)
Suppport nested bin-key map
2019-03-27 11:12:28 +08:00
turtleDeng
e6d90d5758
Improve mountpoint (#2363) 2019-03-27 11:10:51 +08:00
周子博
0fbf771543 Readjust log level into error when got unexpected message 2019-03-27 11:07:58 +08:00
JianBo He
c223f62c5a Put cn/dn of client cert into credentials (#2357)
Put cn/dn of client cert into credentials
2019-03-27 10:20:12 +08:00
Gilbert
2534b8dc64 Support to pass ws compressing options (#2356)
Add new config entries about websocket
2019-03-27 10:19:35 +08:00
tigercl
f5c426a2f2
Add missed case for monitors (#2353) 2019-03-27 10:18:51 +08:00
周子博
58e1b4d485 Readjust log level and unify log format 2019-03-26 22:18:31 +08:00
Shawn
f0fa9a9252 Add a function converting message to binary-key map (#2360) 2019-03-26 10:35:10 +08:00
JianBo He
8d92d58b6c Fix allow_anonymous behavoir error (#2355)
EMQ should allow the anonymous connection if the allow_anonymous option is true, although it has one or more auth plugins started.
2019-03-26 10:25:51 +08:00
Shawn
9e7b3a9209
Update emqx_types.erl 2019-03-22 16:27:23 +08:00
terry-xiaoyu
bd304572c9 Delete acl_mod and auth_mod 2019-03-22 16:18:42 +08:00
terry-xiaoyu
c7a317afaf Add one more connack reason code 2019-03-22 15:43:21 +08:00
HeeeJianBo
fc2df9aff5 Adapt to new export style 2019-03-22 14:58:24 +08:00
Gilbert
e386778aca Fix typo 2019-03-22 11:31:26 +08:00
Feng Lee
dba16aeea5 Add 'remove_header/2', 'get_headers/1' functions
- Adopt new 'export' style
- Add 'remove_header/2', 'get_headers/1' functions
- Remove 'remove_topic_alias/1' function
2019-03-22 11:31:26 +08:00
Feng Lee
ba719a896d Call 'tokens/1' instead of 'words/1' 2019-03-22 11:31:26 +08:00
Feng Lee
a4550a8fc4 Add emqx_topic:tokens/1 function 2019-03-22 11:31:26 +08:00
JianBo He
513d2bcaaa Fix reload ACL failed (#2344)
The original `reload_acl` function only parse the ACL file, not compile and rehook to 'client.check_acl'
2019-03-22 10:21:16 +08:00
turtled
416bc75d5d Sort plugin list 2019-03-22 01:02:30 +08:00
turtled
865ef864db Get the plugins list through -emqx_plugin module attributes 2019-03-22 00:03:53 +08:00
terry-xiaoyu
b79bf13ae7 Rename result -> auth_result 2019-03-22 00:03:34 +08:00
HeeeJianBo
998684fc4e Fix badmatch error in the batch_process of session 2019-03-21 17:40:02 +08:00
terry-xiaoyu
36927f01e7 Add type definition for auth_result 2019-03-21 16:54:50 +08:00
tigercl
e7320620c0 Fix alarm report bug (#2332) 2019-03-21 16:53:46 +08:00
linjun
3a2f6d5a6c Fix badmatch bug for reload_acl 2019-03-21 16:51:57 +08:00
tigercl
5a401c44fd Clear dup flag if message published first (#2337) 2019-03-21 10:13:41 +08:00
JianBo He
8a73c62f66 Fix followed packet parse failure (#2333)
To fix issue#2303(https://github.com/emqx/emqx/issues/2303)
It will report the following error, when a connection sends a TCP frame contained many of MQTT packet and followed a split MQTT packet.
2019-03-20 10:14:52 +08:00
Gilbert Wong
d020ac0390 Delay receive waiting time 2019-03-18 14:20:52 +08:00
turtleDeng
a95ebcd7d6
Fix typo 2019-03-17 00:23:44 +08:00
Gilbert Wong
7ff56b55f0 Force makefile to git clone deps 2019-03-16 23:05:15 +08:00