Commit Graph

738 Commits (91b308a11dc100074d6d9ed92e26478acb19c506)
 

Author SHA1 Message Date
Roger A. Light eaef3db142 O_DIRECTORY not supported everywhere, use O_RDONLY. 9 years ago
Roger A. Light 84df2bb923 [189] Call fsync after persisting data.
To ensure it is correctly written. Closes #189.

Thanks to thanhvtruong.

Bug: https://github.com/eclipse/mosquitto/issues/189
9 years ago
Roger A. Light fff741613e Support for openssl 1.1.0. 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 2c54104ce3 [191] Fix some $SYS messages being incorrectly persisted.
Closes #191.

Bug: https://github.com/eclipse/mosquitto/issues/191
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 A. Light 23113bb5f5 [7] Don't disconnect client on HUP before reading the pending data.
Closes #7.

Bug: https://github.com/eclipse/mosquitto/issues/7
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
Roger A. Light 8663d6aff7 Merge branch 'master' of github.com:eclipse/mosquitto 9 years ago
Roger A. Light 54ca15ad28 Bump appveyor openssl version. 9 years ago
Roger A. Light 6459bc026e Bump appveyor openssl version. 9 years ago
Roger A. Light 41980083db Bump appveyor openssl version. 9 years ago
Roger A. Light 1cd40925b8 [184] Don't attempt to install docs when WITH_DOCS=no.
Thanks to minghuadev.

Bug: https://github.com/eclipse/mosquitto/issues/184
9 years ago
Roger A. Light 63416e6547 ; 9 years ago
Roger A. Light 5d96c3d7ba [186] Fix TLS operation with websockets listeners and libwebsockts 2.x.
Bug: https://github.com/eclipse/mosquitto/issues/186
9 years ago
Roger A. Light 91bfd82491 Merge branch 'fixes' 9 years ago
Roger A. Light 2d0af7309f Bump version number. 9 years ago
Roger A. Light 30686f2dc9 Fix mosquitto_topic_matches_sub(). 9 years ago
Lance Chen 5ccd0dbb80
Add an build option to control building static libraries or not
The option WITH_STATIC_LIBRARIES is default to yes

Signed-off-by: Lance Chen <cyen0312@gmail.com>
9 years ago
Lance Chen 97847fa95b
Rename option BUILD_STATIC_LIBRARY to WITH_STATIC_LIBRARIES
to conform to the bare Makefiles

Signed-off-by: Lance Chen <cyen0312@gmail.com>
9 years ago
Lance Chen 4b4817c3f0
Build the CPP static library with bare Makefiles
In order to make the CPP static library include all
objects from the C static library, the list of objects
(MOSQ_OBJS) is isolated into objects.mk to be used for
building the C and CPP static libraries.

Signed-off-by: Lance Chen <cyen0312@gmail.com>
9 years ago
Lance Chen a9b7237d09
Install/Uninstall the C static library
Symbol stripping is done explicitly with strip command,
since stripping with install command removes too many
symbols, making the result library unusable.

Signed-off-by: Lance Chen <cyen0312@gmail.com>
9 years ago
Roger A. Light ea2baa876c Fix rare possible crash when writing persistence file. 9 years ago
Roger A. Light c035913b2a [180] Fix #includes in lib/send_mosq.c
Ensures that LWS_LIBRARY_VERSION_NUMBER is always present in all source
files when it is defined.

Thanks to dennisip86.

Bug: https://github.com/eclipse/mosquitto/issues/180
9 years ago
Lance Chen f18e8e12a8
Add build configuration for CPP static library
The CPP static library respects options
BUILD_STATIC_LIBRARY and WITH_PIC as well.

Signed-off-by: Lance Chen <cyen0312@gmail.com>
9 years ago
Lance Chen aa360e4029
Add an option to control building static library with PIC or not
The option WITH_PIC is default to OFF.

By default, the static library is built from the
source code directly. If WITH_PIC is enabled, the
static library is built with the same set of
object libraries that the shared library uses.

To link Mosquitto static library into a shared
library, one must enable WITH_PIC to make the
piece of code locatable.

Signed-off-by: Lance Chen <cyen0312@gmail.com>
9 years ago
Lance Chen 7ee997e6cc
Add an option to control building static library or not
The BUILD_STATIC_LIBRARY option is default to ON.

Signed-off-by: Lance Chen <cyen0312@gmail.com>
9 years ago
Roger A. Light ff78cd7873 Fix publishing of $SYS/broker/clients/maximum. 9 years ago
Lance Chen b87082c604
Fix fail linking of handle* functions in the shared library
The shared library fails to link to `handle*` functions
implementd in lib/handle_* because these source file
definitions seem to be removed accidentally in commit
3499c09.

Signed-off-by: Lance Chen <cyen0312@gmail.com>
9 years ago
Josip Cavar afdb83c32a Change pod name to Mosquitto
Signed-off-by: Josip Cavar <josipcavar04@gmail.com>
9 years ago
Roger A. Light 6f5f445196 [169] mosquitto_passwd handles unknown cmd args properly.
Closes #169. Thanks to castorgodinho.

Bug: https://github.com/eclipse/mosquitto/issues/169
9 years ago
Roger A. Light 7761218d3c [170] Fix WS listeners not being able to bind to an IP.
Closes #170. Thanks to minghuadev.

Bug: https://github.com/eclipse/mosquitto/issues/170
9 years ago
Roger A. Light afc2c9951c [57] File missed from previous commit.
Bug: https://github.com/eclipse/mosquitto/issues/57
10 years ago
Roger A. Light a187b3f5fa [57] Handle PUB* with unknown message id gracefully.
Allows message flow to complete where e.g. the broker didn't persist a
partially complete flow.

Thanks to jsaak jsaak and Hiram van Paassen.

Bug: https://github.com/eclipse/mosquitto/issues/57
10 years ago
Roger A. Light e8185ddaa7 [166] Don't cancel external threads.
libmosquitto shouldn't cancel threads it didn't create. This change
allows us to keep track of whether threads were created by the library
or by external code.

Thanks to Josip Ćavar.

Bug: https://github.com/eclipse/mosquitto/issues/166
10 years ago
Roger A. Light c6ef86bd1f Print openssl errors when debugging enabled. 10 years ago
Roger A. Light 99ea5cab7c Default to using port 8883 when using TLS. 10 years ago
Roger A. Light 030a21786d Improve example. 10 years ago
Roger Light dfeb2f9ba6 Merge pull request #141 from PierreF/large-queued-performance-2
Improve performance with lots of queued message
10 years ago