Karl Palsson
2dec0ed895
broker: fix queue_qos0_messages behaviour
...
Prior, offline qos0 clients had an unlimited queue depth when
queue_qos0_messages was true.
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-09-09 17:27:46 +00:00
Karl Palsson
c6aac741c2
broker: support byte based queueing
...
Limiting queued message depth purely based on message count is hard to
control for memory constrained devices. The size of messages can vary
wildly, from a few bytes, to a few kilobytes. Support a new
max_queued_bytes option, and drop packets when the first limit is
reached. Option defaults to 0 (disabled) by default.
Support also a max_inflight_bytes variable, with similar behaviour.
Fixes (partof) https://github.com/eclipse/mosquitto/issues/100
This pulls up some helper routines for calculating whether to allow
inflight or queuing, resolving some inconsistences in connection
resumption.
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-09-09 17:27:39 +00:00
Karl Palsson
642e141c23
conf: max_queued_messages: clarify per client limit
...
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-08-17 11:14:31 +00:00
Karl Palsson
8268e6da08
database: drop unnecessary local variable
...
No need to maintain count and context->msg_count separately.
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-08-17 11:14:31 +00:00
Karl Palsson
8a48fd13f1
broker: publish initial load averages
...
This publishes initial 0 figures for all load averages, as is done for
all the existing counter values in the SYS tree. This makes the
behaviour of certain variables use for diagnostics (stored count for
instance) more predictable, instead of changing due to the creation of
load topics as soon as the load became non-zero.
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-08-17 11:14:31 +00:00
Karl Palsson
30c96f4a1c
broker: track stored messages in bytes as well as count
...
Instead of simply tracking the count of stored messages, keep track of
the total byte size of stored messages. While only informational at
this point, it provides the basis for byte based limits in the future.
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-08-17 10:35:26 +00:00
Karl Palsson
9d00eab64c
tests: support generating longer publish packets
...
Remaining length for publish packets wasn't being handled completely.
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-08-17 10:27:37 +00:00
Karl Palsson
641158aed9
config: garbage line number if file not found
...
If the file is not found, showing 0 rather than a garbage number is
mildly better.
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-08-17 10:27:37 +00:00
Roger A. Light
840453c14f
Remove -x from mosquitto_sub - this is provided by -F now.
2016-08-10 12:24:43 +01:00
Roger A. Light
8140ce1f24
Add -F to mosquitto_sub to allow users to choose the output format.
2016-08-10 12:24:43 +01:00
Roger A. Light
b1c4171cdc
Merge branch 'develop' of github.com:eclipse/mosquitto into develop
2016-08-10 12:22:39 +01:00
Roger A. Light
883af8af53
Better subtree searching.
2016-07-19 15:05:53 +01:00
Roger A. Light
0b5d524723
Update defer plugin function signatures.
2016-07-11 14:29:41 +01:00
Roger A. Light
e4db6a760f
Backwards compatibility for auth plugins.
2016-07-10 23:17:30 +01:00
Roger A. Light
b40cedaf1d
More client accessors.
2016-07-09 21:49:13 +01:00
Roger A. Light
025e56fd4c
New mosquitto_auth_psk_key_get()
2016-07-08 13:52:02 +01:00
Roger A. Light
1a6d23feff
Bump auth plugin version.
2016-07-08 13:27:31 +01:00
Roger A. Light
b3df015ea7
New mosquitto_unpwd_check().
2016-07-08 13:27:14 +01:00
Roger A. Light
63f46a999f
Add username accessor.
2016-07-08 11:50:50 +01:00
Roger A. Light
ccedc6d709
Moving towards new mosquitto_acl_check().
2016-07-08 11:26:58 +01:00
Roger A. Light
45ad23c7be
mosquitto_broker.h include file for end users.
2016-07-08 10:44:41 +01:00
Roger A. Light
017db6706f
Rename mosquitto_broker.h -> mosquitto_broker_internal.h
2016-07-08 10:10:04 +01:00
Roger A. Light
8378fe44cf
Update copyrights.
2016-07-08 09:42:24 +01:00
Roger A. Light
56d0f74725
Defer support for TLS-PSK.
2016-07-08 09:36:25 +01:00
Roger A. Light
8fcafcc6aa
#define SYS_TREE_QOS
2016-07-08 09:15:28 +01:00
Roger A. Light
1b659b41de
sys__ -> sys_tree__
2016-07-08 09:14:11 +01:00
Roger A. Light
43bcf6799c
Move static sys tree entries to sys_tree.c.
2016-07-08 08:46:24 +01:00
Karl Palsson
7cb8988192
websockets: fix compile fail after refactoring ( #207 )
...
A lot of function renaming was done in 663d50a016
,
and this websockets patch was merged afterwards. Autobuild testing
doesn't have websockets enabled, and missed this.
Fixes: d9142c3974
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-07-07 14:19:54 +01:00
Roger A. Light
a04662265a
Remove "mosq%d_vacuum" event as vacuum no longer done.
2016-07-03 22:42:43 +01:00
Roger A. Light
d54359598e
Move signals/events code to own file.
2016-07-03 22:40:27 +01:00
Dmitry Kaukov
6bf8b59d89
Signalling mosquitto process on Win32, using named events: ( #163 )
...
mosqPID_shutdown
mosqPID_reload
mosqPID_backup
mosqPID_vacuum
where PID is the PID of the mosquitto process
Signed-off-by: Dmitry Kaukov <dkaukov@opentable.com>
2016-07-03 22:18:44 +01:00
Roger Light
6eb8b0c0e8
Merge pull request #190 from remakeelectric/db_dump-fixes
...
Db dump fixes
2016-07-01 15:34:12 +01:00
Roger A. Light
6a6efb6143
Fix ssl bridge test.
2016-06-22 11:04:49 +01:00
Roger A. Light
2b2279363b
Bridge defaults to mqtt3.1.1 as per documentation.
2016-06-22 00:04:47 +01:00
Roger A. Light
1c3988a397
Merge branch 'master' into develop
2016-06-21 23:33:58 +01:00
Roger A. Light
63e3926987
Perform UTF-8 validation on will, sub, unsub topics in the broker.
2016-06-21 17:05:33 +01:00
Karl Palsson
339842b623
db_dump: (trivial) add missing newline in output
...
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-06-21 12:29:58 +00:00
Karl Palsson
b1efd9a868
db_dump: properly print uint64_t
...
store id is a uint64_t, print it consistently.
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-06-21 12:29:58 +00:00
Roger A. Light
a8a5daf06b
Check client topic inputs for valid UTF-8.
2016-06-20 22:56:01 +01:00
Roger Light
d813e11ca7
Merge pull request #175 from jcavar/master
...
Change pod name to Mosquitto
2016-06-15 21:14:20 +01:00
Roger A. Light
fa2d3143a4
Separate the C and C++ static libraries.
2016-06-15 21:11:46 +01:00
Roger A. Light
2286caaca2
Merge branch 'enhance-bare-makefile-static-library-build' of https://github.com/Lance0312/mosquitto into Lance0312-enhance-bare-makefile-static-library-build
2016-06-15 20:59:34 +01:00
Roger A. Light
d90cd585dd
Add WITH_STRIP build option.
2016-06-13 21:36:41 +01:00
Roger Light
6c87f7a514
Merge pull request #179 from Lance0312/enhance-static-library-build
...
Enhance static library build
2016-06-07 21:59:51 +01:00
Roger A. Light
f8d84a62bd
Fix cmake test target.
2016-06-07 21:51:27 +01:00
Roger A. Light
e02019ee5b
Travis helpers.
2016-06-07 16:56:15 +01:00
Roger A. Light
8663d6aff7
Merge branch 'master' of github.com:eclipse/mosquitto
2016-06-07 16:54:53 +01:00
Roger A. Light
54ca15ad28
Bump appveyor openssl version.
2016-06-07 16:45:09 +01:00
Roger A. Light
41980083db
Bump appveyor openssl version.
2016-06-07 16:44:23 +01:00
Roger A. Light
91bfd82491
Merge branch 'fixes'
2016-06-02 22:05:34 +01:00