Commit Graph

3617 Commits

Author SHA1 Message Date
terry-xiaoyu
721e7c4804 Fix session termiated without ws_channel 2019-07-20 14:24:15 +08:00
terry-xiaoyu
0c54d899da Trap and handle exit in channel and ws_channel 2019-07-20 13:19:13 +08:00
Gilbert
05b660ff50 Unlink session when exit message has been forwarded to session (#2703)
* Unlink session when exit message has been forwarded to session

* Readjust possition of emqx_protocol:session
2019-07-20 13:05:34 +08:00
turtled
49afbdabda Update ekka tag 2019-07-19 18:03:53 +08:00
turtled
01f8ce1dc7 Add default k8s.suffix 2019-07-19 18:03:53 +08:00
turtled
caf6dab808 Support K8S hostname auto discovery cluster 2019-07-19 18:03:53 +08:00
GilbertWong
eb68ce77b6 Fix the ws channel terminating crash when session pid is undefined 2019-07-19 17:36:50 +08:00
GilbertWong
391e39c3b6 Disable the useless error log info 2019-07-19 17:36:50 +08:00
GilbertWong
0c14484b0a Disable the useless error log info 2019-07-19 17:36:50 +08:00
GilbertWong
953d320667 Implement better websocket exit mechanism 2019-07-19 17:36:50 +08:00
terry-xiaoyu
86333802b9 Add configuration for sys_heartbeat 2019-07-19 17:33:24 +08:00
GilbertWong
4603ea17ef Better gen_rpc performance 2019-07-19 17:31:15 +08:00
GilbertWong
eb7ae13ae9 Better exit reason in websocket channel 2019-07-16 01:33:15 +08:00
GilbertWong
1fc0f61fbb Fix the websocket normal exit bug 2019-07-16 01:09:42 +08:00
GilbertWong
c23be3e15d Update ekka tag 2019-07-11 15:41:36 +08:00
terry-xiaoyu
7472e531b1 Remove log handler for alarms 2019-07-11 13:27:03 +08:00
terry-xiaoyu
1bf68f4807 Change clear alarms to info log 2019-07-11 11:15:23 +08:00
GilbertWong
bf89646d93 Fix typo 2019-07-11 09:43:52 +08:00
GilbertWong
234037aee1 Fix will message mechanism for websocket channel 2019-07-11 09:43:52 +08:00
GilbertWong
c13e194838 Fix the check_subacl bug when enable_acl is set to false 2019-07-11 09:25:20 +08:00
GilbertWong
41dcb4acf2 Delete slave.config 2019-07-11 09:20:38 +08:00
terry-xiaoyu
5867b2e763 Fix idle_timeout crash 2019-07-11 09:17:23 +08:00
terry-xiaoyu
6ab9527603 Optimize to_map for performance 2019-07-05 23:14:27 +08:00
Gilbert
70be888f3b Compat windows (#2665) 2019-07-05 23:10:13 +08:00
周子博
61d64cbb83 Fix the issue that emqx_session:attrs/1 returns wrong value 2019-07-05 22:54:57 +08:00
周子博
8234b616e5 Fix test case 2019-06-29 12:38:57 +08:00
周子博
3ad5700442 Support getting the history of alarms 2019-06-29 12:38:57 +08:00
terry-xiaoyu
96fff39535 Change default logger level to warning 2019-06-28 21:34:21 +08:00
terry-xiaoyu
0e2e4e73ca Clean staled sesssions 2019-06-26 20:04:32 +08:00
Gilbert
9df6345a6c Remove bridge functions from emqx (#2652)
* Remove bridge functions from emqx
2019-06-26 19:33:17 +08:00
tradingtrace
0b116bc208 Fix the massages order when batch dispatching 2019-06-26 19:32:15 +08:00
GilbertWong
22f7280d8e Make sure the default make behaviour is make distclean 2019-06-25 15:27:05 +08:00
GilbertWong
13d33985be Fix enoent error in run_setup rule of the makefile
Prior to this change, if user's computer has no `~/.config/rebar3`
path, `make run` would fail and report enoent error.

This change fix the problem I described above.
2019-06-24 11:42:24 +08:00
Gilbert
475cabde4d Fix issue#2619 (#2646)
* Fix issue#2619
Prior to this change, websocket connection would not be disconnected
when dataframe type is other frametype. However, in mqtt spec, it
shoud be disconnected.

This change fix this inconsistent behaviour with mqtt 5.0
2019-06-21 21:21:49 +08:00
Gilbert
20188f9189 Optimize develop workflow and support make run and code hot swapping (#2644)
* Optimize develop workflow and support make run and code hot swapping
2019-06-21 20:52:27 +08:00
turtled
481458d8ec Add plugin type 2019-06-21 19:52:53 +08:00
tigercl
0c7c4ee417 Using fixed topic for system message of alarm (#2647)
* Using fixed topic for system message of alarm
2019-06-21 19:51:58 +08:00
tigercl
37eef7b72a Add 'auth.mqtt.anonymous' metric (#2631)
* Add 'auth.mqtt.anonymous' metric
2019-06-21 19:21:26 +08:00
Gilbert
138d7727fa
Compact windows platform which has no cpu_sup util function. (#2629)
* Compact windows platform which has no cpu_sup util function.

* Fix wrong os type clause

* Do not start timer when platform is windows
2019-06-20 11:45:44 +08:00
Gilbert
1d23d7de86
Optimize test workflow (#2642)
* Optimize test suites workflow

* Better format of makefile

* Fix protocol suite

* Add emqx_access_SUITE
2019-06-20 11:44:44 +08:00
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
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
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