Commit Graph

665 Commits (97bfa506db0839f0746246ca6c647fc9e3dd826d)
 

Author SHA1 Message Date
Simon Marchi 97bfa506db Add pkg-config files to CMake build (#213)
This patch adds pkg-config files for libmosquitto and libmosquittopp,
and installs them through CMake.

Refs #107

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
9 years ago
Karl Palsson 374c62586e db_dump: use objects to simplify printing (#215)
Prepratory work for providing more filtering of the output dump.
This makes _no_ difference to the current behaviour, but makes it much
simpler for people who "need", for whatever reason, to hack some private
changes into the db_dump tool.

Signed-off-by: Karl Palsson <karlp@etactica.com>
9 years ago
Roger A. Light 41a1b51c31 Print warning, skip test if paho-mqtt not available. 9 years ago
Roger Light 5cc87f80b4 Merge pull request #200 from remakeelectric/drafts/byte-limits1
Implement byte limits for message queues
9 years ago
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>
9 years ago
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>
9 years ago
Karl Palsson 642e141c23 conf: max_queued_messages: clarify per client limit
Signed-off-by: Karl Palsson <karlp@etactica.com>
9 years ago
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>
9 years ago
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>
9 years ago
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>
9 years ago
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>
9 years ago
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>
9 years ago
Roger A. Light 840453c14f Remove -x from mosquitto_sub - this is provided by -F now. 9 years ago
Roger A. Light 8140ce1f24 Add -F to mosquitto_sub to allow users to choose the output format. 9 years ago
Roger A. Light b1c4171cdc Merge branch 'develop' of github.com:eclipse/mosquitto into develop 9 years ago
Roger A. Light 883af8af53 Better subtree searching. 9 years ago
Roger A. Light 0b5d524723 Update defer plugin function signatures. 9 years ago
Roger A. Light e4db6a760f Backwards compatibility for auth plugins. 9 years ago
Roger A. Light b40cedaf1d More client accessors. 9 years ago
Roger A. Light 025e56fd4c New mosquitto_auth_psk_key_get() 9 years ago
Roger A. Light 1a6d23feff Bump auth plugin version. 9 years ago
Roger A. Light b3df015ea7 New mosquitto_unpwd_check(). 9 years ago
Roger A. Light 63f46a999f Add username accessor. 9 years ago
Roger A. Light ccedc6d709 Moving towards new mosquitto_acl_check(). 9 years ago
Roger A. Light 45ad23c7be mosquitto_broker.h include file for end users. 9 years ago
Roger A. Light 017db6706f Rename mosquitto_broker.h -> mosquitto_broker_internal.h 9 years ago
Roger A. Light 8378fe44cf Update copyrights. 9 years ago
Roger A. Light 56d0f74725 Defer support for TLS-PSK. 9 years ago
Roger A. Light 8fcafcc6aa #define SYS_TREE_QOS 9 years ago
Roger A. Light 1b659b41de sys__ -> sys_tree__ 9 years ago
Roger A. Light 43bcf6799c Move static sys tree entries to sys_tree.c. 9 years ago
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>
9 years ago
Roger A. Light a04662265a Remove "mosq%d_vacuum" event as vacuum no longer done. 9 years ago
Roger A. Light d54359598e Move signals/events code to own file. 9 years ago
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>
9 years ago
Roger Light 6eb8b0c0e8 Merge pull request #190 from remakeelectric/db_dump-fixes
Db dump fixes
9 years ago
Roger A. Light 6a6efb6143 Fix ssl bridge test. 9 years ago
Roger A. Light 2b2279363b Bridge defaults to mqtt3.1.1 as per documentation. 9 years ago
Roger A. Light 1c3988a397 Merge branch 'master' into develop 9 years ago
Roger A. Light 63e3926987 Perform UTF-8 validation on will, sub, unsub topics in the broker. 9 years ago
Karl Palsson 339842b623 db_dump: (trivial) add missing newline in output
Signed-off-by: Karl Palsson <karlp@etactica.com>
9 years ago
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>
9 years ago
Roger A. Light a8a5daf06b Check client topic inputs for valid UTF-8. 9 years ago
Roger Light d813e11ca7 Merge pull request #175 from jcavar/master
Change pod name to Mosquitto
9 years ago
Roger A. Light fa2d3143a4 Separate the C and C++ static libraries. 9 years ago
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 9 years ago
Roger A. Light d90cd585dd Add WITH_STRIP build option. 9 years ago
Roger Light 6c87f7a514 Merge pull request #179 from Lance0312/enhance-static-library-build
Enhance static library build
9 years ago
Roger A. Light f8d84a62bd Fix cmake test target. 9 years ago
Roger A. Light e02019ee5b Travis helpers. 9 years ago