Commit Graph

52 Commits (100fd31530976749e3dde7d45fa422a0deb89355)

Author SHA1 Message Date
Roger A. Light 100fd31530 Refactor base_msg structs. 3 years ago
Roger A. Light 2d969efdc4 Fix cmake tests 3 years ago
Roger A. Light 56b1fa01bd Fix Coverity Scan 1436848 3 years ago
Roger A. Light 2e36d523c8 Rename mosquitto_base_msg -> mosquitto__base_msg 3 years ago
Norbert Heusser 2ec6901e92 Fixed target clean in apps/db_dump Makefile
Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
3 years ago
Roger A. Light 86f3a6b484 Extend db_dump tests, and fix minor bugs. 3 years ago
Roger A. Light 26de915f53 Use MAKE macro, no need to pass MAKEFLAGS. 3 years ago
Roger A. Light 88b20c9113 Fix missing make targets 3 years ago
Roger A. Light 27c99bc7e7 Add db_dump test to verify current broker output. 3 years ago
Roger A. Light 6b1b0bf7bc Start of db_dump tests. 3 years ago
Roger A. Light afc575aa1c Simplify function calls. 3 years ago
Roger A. Light 4997b40259 Report persistence stats when starting. 3 years ago
Roger A. Light ca618c6f96 Fix db_dump coverage build 3 years ago
Roger A. Light fd68bf00c7 Merge branch 'master' into develop 3 years ago
Roger A. Light d71451984c Fix frees in db_dump. 3 years ago
Roger A. Light 3e1cf8a80b Fix tests build. 3 years ago
Roger A. Light 726b7f42a8 Fix Coverity Scan 1486941 4 years ago
Roger A. Light 2d3b152a22 Rename of mosquitto_msg_store struct.
struct mosquitto_msg_store -> struct mosquitto_base_msg

This is the base message which client messages and retained messages
refer to. The base messages are still held in the message store.

This change comes about because the persistence interface exposes these
message types. Prior to this commit the different messages were "msg",
"client_msg", and "retain". After this commit there is "base_msg",
"client_msg", and and "retain_msg" in the persist interface.
4 years ago
Roger A. Light ffb7661d86 Move shared code to common directory
This is currently limited to "utility" type functions and does not include code common to the library and broker that are protocol related.
4 years ago
Roger A. Light 5a3b42d4a4 Use path vars in Makefiles. 4 years ago
Roger A. Light 0f8733627a Plugin persistence interface. 4 years ago
Roger A. Light 9ad8d943be Stored messages now always stored in a hash table. 4 years ago
Roger Light cd07f1136b Bump copyrights. 4 years ago
Roger A. Light 8ac11929cc Merge branch 'master' into develop 4 years ago
Roger A. Light 799cdead15 Experimental custom websockets support. 4 years ago
Roger A. Light be80a3f4d0 Fix client id not showing in log on failed connections, where possible. 4 years ago
Roger A. Light a1a190b482 Pointless whitespace tidy. 4 years ago
Roger A. Light a73806acd4 App build fix. 4 years ago
Roger A. Light aa29b45e70 Merge branch 'master' into develop 4 years ago
Roger A. Light f952d19da1 Fix printf format build warning on MIPS.
Closes #2271. Thanks to Karl Palsson.
4 years ago
Roger A. Light 906a515704 Simplify client message properties, only one is used. 4 years ago
Roger A. Light 214feb8f6b Merge branch 'fixes' into develop 4 years ago
Roger Light 0eb7391e71 Fix tests and db_dump compilation. 4 years ago
Roger A. Light 8a03b5ad5c Function for checking if a context is connected. 4 years ago
Roger Light e1c8f09372 Remove C++ style comments. 4 years ago
Roger A. Light 4ee03f21e3 Guard against missing UNUSED. 5 years ago
Roger Light 2de8c15bc9 Minor build fixes. 5 years ago
Roger A. Light 706a1f3f29 Fix more minor compiler warnings. 5 years ago
Roger A. Light a4389fc9ce Fix SPDX identifiers: EDL-1.0 -> BSD-3-Clause.
The two licenses are the same.
5 years ago
Roger A. Light fabdfcc060 Further fix for large packets not being sent in a timely fashion. 5 years ago
Roger Light c604cf8fd0 net__write buf should be const. 5 years ago
Roger A. Light b2da540c64 Fix large packets not being completely published to slow clients.
Also fix bridge connection not relinquishing POLLOUT after messages are
sent.

Closes #1977. Thanks to marchaesen.
Closes #1979. Thanks to GorazdKikelj.
5 years ago
Roger A. Light 3731535298 Add SPDX license identifiers. 5 years ago
Roger A. Light 584cf51ba7 Update to EPL-2.0 5 years ago
Roger A. Light adfa9f1e21 Always zero terminate payloads (removes uhpa support) 5 years ago
Roger A. Light 0c6365726f Coverity Scan issues.
1436823
1436837
1436843
1432792
1436847
1436848
1436849
5 years ago
Roger A. Light f83fcc8535 Fix Coverity Scan issues.
1436866
1436865
1436864
1436862
1436857
1436856
1436852
1436851
5 years ago
Roger A. Light b816d46508 Use db as a global var instead of passing to functions.
This allows a big swath of ifdefs to be removed. It also means savings as the db var is not passed around all of the time, and makes it easier to remove the final broker call to mosquitto_time() call in packet_mosq.c. In one test this reduced the calls to mosquitto_time() from 295k to 48k.
5 years ago
Roger A. Light 108b23ce6d Reduce use of mosquitto_time() and time(). 5 years ago
Roger A. Light 4f61f6c161 Fix conversion errors. 5 years ago