Commit Graph

1566 Commits

Author SHA1 Message Date
Feng Lee
f8e28e39ed Improve the channel modules and fix the extension mods 2019-08-02 18:04:38 +08:00
Feng Lee
32795321f5 Improve the rewrite mod using the new hooks 2019-08-02 11:14:42 +08:00
Feng Lee
cf9caf3c32 Add conn/0 type 2019-08-02 11:14:42 +08:00
Feng Lee
2fdda99d6d Improve the pipeline design of protocol and session 2019-08-02 11:14:42 +08:00
周子博
ef9cbe51eb Fix conflict 2019-08-02 10:41:46 +08:00
Feng Lee
c95a89ed1e Merge branch 'nchannel' into develop 2019-07-31 14:03:48 +08:00
Feng Lee
0a6468cf48 Introduce the 'pipeline' design pattern
- Introduce the 'pipeline' design pattern in emqx_protocol module
- Reame the '{dispatch, ...' to '{deliver, ...' in emqx_broker module
- Rename type 'credentials' to 'client'
2019-07-31 08:09:47 +08:00
Feng Lee
b32156bd68 Rename the type 'credentials' to 'client' 2019-07-31 08:08:11 +08:00
Feng Lee
41dfbd4165 Add 'packets.pubrec.inuse' counter 2019-07-30 19:12:42 +08:00
Feng Lee
c880668419 Register channel in this module 2019-07-30 19:11:21 +08:00
Feng Lee
51fb4e33d6 Rename 'Credentials' to 'Client' 2019-07-30 19:10:38 +08:00
Feng Lee
c55ada3526 Improve the types 2019-07-27 23:24:38 +08:00
Feng Lee
d99c9daf76 Replace credentials with client 2019-07-27 23:22:02 +08:00
Feng Lee
32b2a01d68 Fix function_clause error and improve ws channel 2019-07-26 00:18:25 +08:00
Feng Lee
64148ac0e8 Improve the 'info/1', 'attrs/1' and 'stats/1' APIs 2019-07-25 09:26:36 +08:00
Feng Lee
b4a0a1c228 Fix whitespace 2019-07-25 09:26:02 +08:00
Feng Lee
5b3a61b799 Merge the connection and session tabs into channel tab 2019-07-25 09:25:45 +08:00
Feng Lee
a0a2375810 Update the .app file 2019-07-25 09:25:00 +08:00
Feng Lee
2de4bb0b8f Improve the channel modules and add 'attrs/1' API 2019-07-25 09:24:10 +08:00
Feng Lee
c091e89796 Remove the unnecessary include/emqx_client.hrl 2019-07-23 10:56:14 +08:00
Feng Lee
6b84eb0595 Rewrite the channel, protocol and session modules. 2019-07-22 17:08:53 +08:00
terry-xiaoyu
0569388f0f Fix websocket still send willmsg even after disconnect is received 2019-07-20 19:02:49 +08:00
terry-xiaoyu
4559b5023e Fix heartbeat interval 2019-07-20 16:20:53 +08:00
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
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
Feng Lee
7b27d49a40 Add new metric 'channel.gc.cnt' 2019-07-14 08:59:38 +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
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
Feng Lee
f4a753f683 Remove the debug print of batch deliver 2019-07-02 14:50:13 +08:00
Feng Lee
8c37ea3f38 Fix conflict 2019-07-02 14:02:42 +08:00
Feng Lee
42da51e1c5 Implement batch delivery for the new channel design
- Implement a new emqx_channel module
- Improve the emqx_frame:serialize/2 API
- Improve the emqx_connection, emqx_ws_connection modules
2019-07-02 13:40:52 +08:00
Feng Lee
177dc44155 Define 'Otherwise' macro 2019-07-02 13:39:23 +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