0.17.0 config

This commit is contained in:
Feng 2016-03-11 23:46:27 +08:00
parent 978413298d
commit c626eadad4
3 changed files with 15 additions and 33 deletions

View File

@ -79,7 +79,7 @@
%% Max ClientId Length Allowed
{max_clientid_len, 1024},
%% Max Packet Size Allowed, 64K default
{max_packet_size, 65536}
{max_packet_size, 65536}
]},
%% Client
{client, [
@ -176,11 +176,8 @@
%% Static subscriptions from backend
backend,
%% $u will be replaced with username
{"$Q/username/$u", 1},
%% $c will be replaced with clientid
{"$Q/client/$c", 1}
%% $c will be replaced by clientid
{"$queue/clients/$c", 1}
]}
%% Rewrite rules

View File

@ -77,9 +77,6 @@
{client, [
%% Socket is connected, but no 'CONNECT' packet received
{idle_timeout, 20} %% seconds
%TODO: Network ingoing limit
%{ingoing_rate_limit, '64KB/s'}
%TODO: Reconnet control
]},
%% Session
{session, [
@ -164,19 +161,16 @@
{modules, [
%% Client presence management module.
%% Publish messages when client connected or disconnected
{presence, [{qos, 0}]}
{presence, [{qos, 0}]},
%% Subscribe topics automatically when client connected
%% {subscription, [
%% %% Static subscriptions from backend
%% backend,
%%
%% %% $u will be replaced with username
%% {"$Q/username/$u", 1},
%%
%% %% $c will be replaced with clientid
%% {"$Q/client/$c", 1}
%% ]}
{subscription, [
%% Static subscriptions from backend
backend,
%% $c will be replaced by clientid
{"$queue/clients/$c", 1}
]}
%% Rewrite rules
%% {rewrite, [{file, "etc/rewrite.config"}]}

View File

@ -151,15 +151,6 @@
{pubsub, [
%% Default should be scheduler numbers
{pool_size, 8},
%% Subscription: disc | ram | false
{subscription, ram},
%% Route shard
{route_shard, false},
%% Route delay, false | integer
{route_delay, false},
%% Route aging time(seconds)
{route_aging, 5}
@ -182,14 +173,14 @@
%% Subscribe topics automatically when client connected
{subscription, [
%% Subscription from stored table
stored,
%% Static subscriptions from backend
backend,
%% $u will be replaced with username
{"$Q/username/$u", 1},
{"$queue/username/$u", 1},
%% $c will be replaced with clientid
{"$Q/client/$c", 1}
{"$queue/clients/$c", 1}
]}
%% Rewrite rules