Ian Johnson
93906b9dfd
We don't want to add any declaration properties for the static library, as the static library doesn't export or import anything, so when STATIC_LIB is defined the libmosq_EXPORT defines to nothing
...
Signed-off-by: Ian Johnson <ijohnson@wolfram.com>
10 years ago
Ian Johnson
13f28d1c1e
Adding the static library target, libmosquitto_static, to CMakeLists.txt so it gets installed, and when compiled STATIC_LIB gets defined for only the static library
...
Signed-off-by: Ian Johnson <ijohnson@wolfram.com>
10 years ago
Ian Johnson
87112a7e21
On Mac, we don't want to run /sbin/ldconfig as it doesn't exist
...
Signed-off-by: Ian Johnson <ijohnson@wolfram.com>
10 years ago
Ian Johnson
3163cf2d70
Only include man subdirectory if the DOCUMENTATION option is on
...
Signed-off-by: Ian Johnson <ijohnson@wolfram.com>
10 years ago
Tomas Novotny
fe93138197
Add default config path to systemd services. ( #139 )
...
Config file is installed by default, so I would expect that it will be used by
the systemd service. Add argument for the configuration to the services.
Signed-off-by: Tomas Novotny <novotny@rehivetech.com>
10 years ago
Pierre Fersing
18cc0f5fc7
Fix bugs introduced by previous commit
...
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
10 years ago
Pierre Fersing
44f23252a0
Improve performance with lots of queued message
...
Split message queue in two queues: in-flight and queued to avoid the
need to iterate over all messages.
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
10 years ago
Roger A. Light
4a67fcebc5
More codacy test fixes.
10 years ago
Roger A. Light
07b21f0fe5
Fix minor test problems highlighted by codacy.com.
10 years ago
Frank Busse
10bb523854
fix 16 byte memory leak
...
Adds missing free for config->pid_file in mqtt3_config_cleanup.
Signed-off-by: Frank Busse <bb0xfb@gmail.com>
10 years ago
Frank Busse
defbfbd185
DOS: use-after-free in ACL message handling
...
Removing the last message in queue because of an ACL leaves last_msg
in a corrupted state. Therefore an unauthorized attacker may cause a
segfault of the broker.
Signed-off-by: Frank Busse <bb0xfb@gmail.com>
10 years ago
Roger A. Light
62402f7b60
Ignore generated test files.
10 years ago
Roger A. Light
37dceb38f9
Fix some defects discovered by coverity.
10 years ago
Roger A. Light
6a9382d864
Fix building on Visual Studio 2015
...
Closes #136 .
Thanks to Pelayo Méndez.
10 years ago
Roger A. Light
caa394d0fe
Return value of pthread_create is now checked.
10 years ago
Roger A. Light
d20355c8ac
Merging travis config changes across branches.
...
[ci skip]
10 years ago
Roger A. Light
70f2bea51f
Merging travis config changes across branches.
...
[ci skip]
10 years ago
Roger A. Light
09ea5cbf2c
mosquitto_db_dump can now output some client stats.
...
This may be useful for finding out which clients are using significant
amounts of persistence space.
10 years ago
Roger A. Light
49936c8ec3
Incorrect quoting.
10 years ago
Roger A. Light
70d1409e62
Updated travis config for fixes branch.
10 years ago
Roger A. Light
69a08ab905
Fix string quoting in CMakeLists.txt. Closes #4 .
10 years ago
Roger A. Light
35c4d3d59a
Handle some unchecked malloc() calls. Closes #1 .
...
Thanks to Markus Elfring.
10 years ago
Roger A. Light
556c629ab5
Don't use reserved names in header guards.
...
Closes #3 .
10 years ago
Roger A. Light
6c8c649ac2
More test fixes.
10 years ago
Roger A. Light
8906d67ad4
Default to MQTT v3.1.1 in tests.
10 years ago
Roger A. Light
1b190b14f1
Fix auth deferring with no pwfile defined.
10 years ago
Roger A. Light
db2e66c543
Reorganise functions into separate files as appropriate.
10 years ago
Roger A. Light
bd61d18e92
Small tidy up.
10 years ago
Matteo Croce
59c80d9197
Add MQTT URL scheme support
...
Add option -L to specify user, password, hostname, port and topic at once.
The URL must provided with the -L or --url in the form:
mqtt(s)://[username[:password]@]host[:port]/topic
Change-Id: Ia626a28981a38807a254ae32c6ffb29b122b8a28
Signed-off-by: Matteo Croce <matteo@openwrt.org>
10 years ago
Roger A. Light
37238fb645
Don't build debian branch.
10 years ago
Roger A. Light
62fa209eeb
Add tests for cmake builds and use on travis.
10 years ago
Roger A. Light
7f9db87f30
Makefile target for static compiled pub/sub clients.
10 years ago
Roger A. Light
6087d4bcb6
Fix incorrect calloc/mosquitto__free pair.
10 years ago
Roger A. Light
fda0cb3d45
Fix incorrect $SYS heap memory reporting when using ACLs.
10 years ago
Roger A. Light
32cf2b6743
Allow failures on travis osx.
10 years ago
Roger A. Light
5f7b169391
Travis config update.
10 years ago
Roger A. Light
059bfb0500
Travis build status.
10 years ago
Roger A. Light
a3ec9dca8a
Update readme and travis config.
10 years ago
Roger A. Light
abc2f3f9de
Network errors are printed correctly on Windows.
10 years ago
Roger A. Light
a79412e3d8
Fix compile error from library keepalive handling.
10 years ago
Roger A. Light
1065a0f202
Will topic isn't truncated when using a mount_point.
10 years ago
Roger A. Light
6bac3f072c
Reconnecting client doesn't start with mid=1 again.
10 years ago
Roger A. Light
d9142c3974
[476314] Deliver queued WS client msgs on reconnect.
...
Thanks to Joking Young and Christoph Krey.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=476314
10 years ago
Roger A. Light
af995d211d
Fix client library keepalive handling.
...
Fix the case where a message received just before the keepalive timer
expired would cause the client to miss the keepalive timer.
Thanks to Graham Benton.
10 years ago
Roger A. Light
bf959ef9b0
Merge branch 'fixes'
10 years ago
Roger A. Light
5cca6b4239
Bump version number.
10 years ago
Roger A. Light
7a48bcbce8
Script for bumping version numbers.
10 years ago
Roger A. Light
34a7f14fd2
[485131] Fix incorrect detection of FreeBSD and OpenBSD
...
Thanks to Peter Morjan.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=485131
10 years ago
Roger A. Light
f588075931
[485589] Close stdin etc. when daemonised.
...
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=485589
10 years ago
Roger A. Light
eb514c9707
[487178] Obey mount_point when publishing wills.
...
Wills published by clients connected to a listener with mount_point defined
now correctly obey the mount point. This was a potential security risk
because it allowed clients to publish messages outside of their restricted
mount point. This is only affects brokers where the mount_point option is in
use.
Thanks to Lance Riley.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=487178
10 years ago