J Phani Mahesh
a71a061305
add app.src,rebar.lock, ignores for rebar3
...
Having src/emqttd.app.src allows rebar family of build tools
(rebar2, and rebar3) to be used to compile emqttd. This is important
to allow plugins to be written using rebar3, to lock dependencies.
rebar.lock contains references to commits or hashes of dependencies
and is used by rebar3 to allow repeatable builds.
This is important since without it, updates to dependencies are
silently pulled and it is impractical to replicate a build properly.
However, this adds an additional maintenance effort. Periodically,
the lock file must be updated using rebar3 upgrade, and app.src
must be updated when adding new dependencies.
Note that erlang.mk does not respect dependency locking currently,
and does not benefit from rebar.lock.
_build is used by rebar3 and mix for storing built artifacts.
2017-02-27 14:19:04 +05:30
Feng
53572b7d37
Fix the comments of mqtt.session.* configurations
2017-02-24 20:38:35 +08:00
huangdan
71eaf285f7
Merge branch 'master' into windows
2017-02-24 11:06:03 +08:00
Feng Lee
331d016c8e
Merge pull request #917 from emqtt/emq20
...
V2.1.0-beta.1: Tune the CPU/Memory usage of Client/Session Processes
2017-02-23 23:26:13 +08:00
Feng
1e91c0e220
Format code
2017-02-23 23:01:20 +08:00
Feng
440011da9a
Rename 'Pkt' to 'PktCnt', 'Msg' to 'MsgCnt'
2017-02-23 23:00:55 +08:00
Feng
9309baf17c
Rename mqtt_msgid() type to mqtt_msg_id()
2017-02-23 22:59:26 +08:00
Feng Lee
edd99dc5ed
Disable the force GC if conn_force_gc_count = 0
2017-02-23 18:53:16 +08:00
Feng Lee
1e36750288
Use emqttd_gc:reset_conn_gc_count/2 API
2017-02-23 17:40:50 +08:00
Feng Lee
5ef4fce141
Handle the {ok, I} return
2017-02-23 17:26:29 +08:00
Feng Lee
e972103f74
Fix the 'spawn_opt' options
2017-02-23 17:25:44 +08:00
Feng Lee
73847b96fc
Add 'FULLSWEEP_OPTS' macro
2017-02-23 17:16:55 +08:00
Feng Lee
7d65ad42ad
Add '[{fullsweep_after, 10}]' opts and 'force_gc_count' to tune the memory usage
2017-02-23 16:56:16 +08:00
Feng Lee
124aa454fb
Add 'mqtt.conn.force_gc_count' config to tune GC of MQTT connection
2017-02-23 16:53:47 +08:00
Feng Lee
ab76e7978b
Add emqttd_gc module
2017-02-23 16:53:09 +08:00
Feng Lee
2d9dbe4729
Support to hook 'tag' function
2017-02-23 11:55:52 +08:00
Feng
365bfb9e80
Replace emqttd_misc:inc_stats/1 with inc_stats/1
2017-02-22 23:08:22 +08:00
Feng
239cf1b5fc
Add '{backoff, 1000, 1000, 10000}' to return of init/1
2017-02-22 23:07:27 +08:00
Feng
b8084f2989
Remove inc_stats/1 function
2017-02-22 22:24:23 +08:00
Feng Lee
5d5de51f89
Change the gen_server:start_link to gen_server2
2017-02-22 18:47:14 +08:00
Feng Lee
5543b72243
Force to GC the Websocket Process
2017-02-22 18:41:02 +08:00
Feng Lee
f955614f9d
Remove the io:format line
2017-02-22 18:40:17 +08:00
Feng Lee
39abdb8b41
Remove 'enable_stats' from 'INFO_KEYS', and remove io:format line
2017-02-22 17:52:55 +08:00
Feng Lee
8e7ea09cbd
Tune the mqtt.client|session.enable_stats off
2017-02-22 17:34:00 +08:00
Feng Lee
03e6c8b64c
Version 2.1.0
2017-02-22 17:33:25 +08:00
Feng Lee
05e34fe783
Move the 'cuttlefish' library from TEST_DEPS to BUILD_DEPS
2017-02-22 16:19:49 +08:00
Feng Lee
7d16422d5c
Require R19+ to build since 2.1 release
2017-02-22 15:56:12 +08:00
Feng Lee
88c2b4eaa3
Use the new emqttd_parser API to parse Websocket frame
2017-02-22 15:43:24 +08:00
Feng Lee
b4936726fd
Remove the random:seed/1 to fix the build warnings
2017-02-22 15:36:06 +08:00
Feng Lee
088adeda3b
Fix issue #916 - add 'mqtt_msg_from()' type
2017-02-22 14:11:10 +08:00
Feng
f4c4e5635c
Improve the 'enable_stats' design of client, session
2017-02-22 12:10:52 +08:00
Feng
700ec7aaef
Add 'proto_stats' record
2017-02-22 10:01:39 +08:00
Feng
6c50a59cad
Rename macro 'MAX_PACKET_LEN' to 'MAX_PACKET_SIZE'
2017-02-22 00:32:22 +08:00
Feng
418fb37ca0
Add max_packet_size() type
2017-02-22 00:31:47 +08:00
Feng
d33a41b28b
Remove unused fields: connname, peerhost, peerport
2017-02-22 00:31:09 +08:00
Feng
62a0eaf65d
Fix the test cases for emqttd_parser
2017-02-21 23:02:10 +08:00
Feng Lee
17953a4716
Rename 'MAX_LEN' to 'MAX_PACKET_LEN'
2017-02-21 20:11:09 +08:00
Feng Lee
4d2d6fa0d6
Change the default max_len to infinity
2017-02-21 20:10:38 +08:00
Feng Lee
7e98650233
Improve the emqttd_parser design
2017-02-21 20:10:17 +08:00
Feng Lee
de12c58af0
Rename 'MAX_LEN' to 'MAX_PACKET_LEN'
2017-02-21 20:09:31 +08:00
Feng Lee
498915e5b3
Hibernate after a packet sent
2017-02-21 19:26:50 +08:00
Feng Lee
d310fff532
Add 'lager_syslog' dependency
2017-02-21 18:46:44 +08:00
Feng Lee
ff60578a7d
Change the datatype of 'enable_stats' to 'flag'
2017-02-21 18:46:10 +08:00
Feng Lee
3cdf2377c8
Use gen_server2 to reduce the CPU/memory usage
2017-02-21 18:45:40 +08:00
Feng Lee
b8fb73576e
Merge branch 'master' into emq20
2017-02-21 16:24:13 +08:00
turtled
9468f71c2f
create windows branch
2017-02-20 19:21:28 +08:00
Feng Lee
cabd1af23a
Hiberate after subscribe, unsubscribe and resume
2017-02-20 16:45:53 +08:00
Feng Lee
e88c3f0761
Merge pull request #912 from emqtt/emq20
...
Support 'acl reload' CLI
2017-02-18 15:11:45 +08:00
Feng Lee
44ea90fa20
Merge pull request #911 from emqtt/develop
...
Fix #885 - support 'acl reload' cli
2017-02-18 15:09:55 +08:00
turtled
a7ed2c402b
fix #885
2017-02-18 15:03:41 +08:00