Commit Graph

961 Commits

Author SHA1 Message Date
Roger A. Light
37dceb38f9 Fix some defects discovered by coverity. 2016-03-18 11:54:36 +00:00
Roger A. Light
6a9382d864 Fix building on Visual Studio 2015
Closes #136.

Thanks to Pelayo Méndez.
2016-03-17 21:24:50 +00:00
Roger A. Light
caa394d0fe Return value of pthread_create is now checked. 2016-03-17 21:22:56 +00:00
Roger A. Light
d20355c8ac Merging travis config changes across branches.
[ci skip]
2016-03-15 11:47:29 +00:00
Roger A. Light
70f2bea51f Merging travis config changes across branches.
[ci skip]
2016-03-15 11:44:23 +00:00
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.
2016-03-15 00:18:40 +00:00
Roger A. Light
49936c8ec3 Incorrect quoting. 2016-03-13 21:18:46 +00:00
Roger A. Light
70d1409e62 Updated travis config for fixes branch. 2016-03-13 21:04:47 +00:00
Roger A. Light
69a08ab905 Fix string quoting in CMakeLists.txt. Closes #4. 2016-03-13 20:33:08 +00:00
Roger A. Light
35c4d3d59a Handle some unchecked malloc() calls. Closes #1.
Thanks to Markus Elfring.
2016-03-13 19:07:28 +00:00
Roger A. Light
556c629ab5 Don't use reserved names in header guards.
Closes #3.
2016-03-13 18:43:13 +00:00
Roger A. Light
6c8c649ac2 More test fixes. 2016-03-13 08:23:02 +00:00
Roger A. Light
8906d67ad4 Default to MQTT v3.1.1 in tests. 2016-03-13 08:01:39 +00:00
Roger A. Light
1b190b14f1 Fix auth deferring with no pwfile defined. 2016-03-13 07:21:31 +00:00
Roger A. Light
db2e66c543 Reorganise functions into separate files as appropriate. 2016-03-12 21:49:48 +00:00
Roger A. Light
bd61d18e92 Small tidy up. 2016-03-12 21:43:29 +00:00
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>
2016-03-12 21:43:29 +00:00
Roger A. Light
37238fb645 Don't build debian branch. 2016-03-12 21:14:03 +00:00
Roger A. Light
62fa209eeb Add tests for cmake builds and use on travis. 2016-03-12 20:29:32 +00:00
Roger A. Light
7f9db87f30 Makefile target for static compiled pub/sub clients. 2016-03-12 20:22:36 +00:00
Roger A. Light
6087d4bcb6 Fix incorrect calloc/mosquitto__free pair. 2016-03-12 13:27:25 +00:00
Roger A. Light
fda0cb3d45 Fix incorrect $SYS heap memory reporting when using ACLs. 2016-03-12 13:25:20 +00:00
Roger A. Light
32cf2b6743 Allow failures on travis osx. 2016-03-11 22:09:26 +00:00
Roger A. Light
5f7b169391 Travis config update. 2016-03-11 22:04:09 +00:00
Roger A. Light
059bfb0500 Travis build status. 2016-03-11 22:01:02 +00:00
Roger A. Light
a3ec9dca8a Update readme and travis config. 2016-03-11 21:55:33 +00:00
Roger A. Light
abc2f3f9de Network errors are printed correctly on Windows. 2016-03-07 20:57:22 +00:00
Roger A. Light
a79412e3d8 Fix compile error from library keepalive handling. 2016-03-06 19:49:20 +00:00
Roger A. Light
1065a0f202 Will topic isn't truncated when using a mount_point. 2016-03-05 22:38:05 +00:00
Roger A. Light
6bac3f072c Reconnecting client doesn't start with mid=1 again. 2016-03-05 22:34:05 +00:00
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
2016-03-05 22:31:52 +00:00
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.
2016-02-28 17:24:43 +00:00
Roger A. Light
bf959ef9b0 Merge branch 'fixes' 2016-02-14 14:38:42 +00:00
Roger A. Light
5cca6b4239 Bump version number. 2016-02-14 14:10:52 +00:00
Roger A. Light
7a48bcbce8 Script for bumping version numbers. 2016-02-12 21:47:51 +00:00
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
2016-02-11 21:52:03 +00:00
Roger A. Light
f588075931 [485589] Close stdin etc. when daemonised.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=485589
2016-02-11 21:49:55 +00:00
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
2016-02-11 21:17:55 +00:00
Roger A. Light
9497dab724 Merge branch 'fixes' of ssh://git.eclipse.org:29418/mosquitto/org.eclipse.mosquitto into fixes 2016-02-09 23:06:26 +00:00
Roger A. Light
f6939d4cbb Merge branch 'develop' of ssh://git.eclipse.org:29418/mosquitto/org.eclipse.mosquitto into develop 2016-02-09 23:03:34 +00:00
Roger A. Light
f5c4b837e0 Fix merge error. 2016-02-09 23:03:26 +00:00
Roger A. Light
d5abf5a18a Outgoing connections can use any TLS version. 2016-02-09 23:02:46 +00:00
Roger A. Light
fd6a6cac14 Only increment inflight msgs when limit not reached. 2016-02-09 23:01:31 +00:00
Roger A. Light
97e6ac22d8 Only increment inflight messages if the limit hasn't been reached. 2016-02-09 23:00:15 +00:00
Roger A. Light
26b015908e Default to using MQTT v3.1.1. 2016-02-05 21:22:42 +00:00
Roger A. Light
1961404ec9 Add --retained-only to mosquitto_sub. 2016-02-02 20:57:37 +00:00
Roger A. Light
4e4c08aaf0 "retained" -> "want_retained". 2016-01-26 17:10:54 +00:00
Roger A. Light
7709621911 Reorder helper function arguments for consistency. 2016-01-26 17:06:32 +00:00
Roger A. Light
0a95c9a3af Add mosquitto_subscribe_callback(). 2016-01-26 17:00:08 +00:00
Roger A. Light
bd906e6753 Fix merge error. 2016-01-26 15:55:17 +00:00