Commit Graph

647 Commits (88f72f3f14127124c9e80c9bb9830f5154a8782f)
 

Author SHA1 Message Date
Roger A. Light a2a2099fa1 Fix error message when websockets http_dir directory does not exist. 9 years ago
Roger A. Light 8171a975ae [354] Close http files even on bad clients.
Thanks to jbwdevries.

Bug: https://github.com/eclipse/mosquitto/issues/354
9 years ago
Roger A. Light 7f66bf1f65 [316] Don't error on zero length persistence files.
Closes #316.

Bug: https://github.com/eclipse/mosquitto/issues/316
9 years ago
Roger A. Light ef417a6688 Don't use reserved identifiers in public headers. 9 years ago
Roger A. Light 53616be0e2 Fix 1.4.10 docker files. 9 years ago
Adam Giemza 37cbadc311 added docker support for version 1.4.10-r2 based on alpine 3.5 (#346)
Signed-off-by: Adam Giemza <adam.giemza@gmail.com>
9 years ago
David Audet 25a1f7d199 Update Dockerfiles to not save the apk cache
When installing the Mosquitto package from Alpine Linux, we don't need
to save the latest package index to the cache. We are specifically requesting
the latest package index each time we install Mosquitto and not using the local
cache at all (--no-cache).

Signed-off-by: David Audet <david.audet@ca.com>
9 years ago
Jens Breitbart fbb60d67a7 Fix compiler warnings (unused parameter, additional semicolon).
A modern version of the clang compiler complained about:
* unused parameters
* additional semicolon
. This commit fixes these warnings.

Signed-off-by: Jens Breitbart <jbreitbart@gmail.com>
9 years ago
Roger A. Light 2c2ba2cf10 [329] Fix potential negative timeout being passed to pselect.
Thanks to Dollars.

Bug: https://github.com/eclipse/mosquitto/issues/329
9 years ago
Roger A. Light b55b47efd3 Fix potential socket leakage when reconnecting.
Bug: https://github.com/eclipse/mosquitto/issues/304
9 years ago
Teun Lassche dac29a5a5f Fix #304 Socket leakage
Signed-off-by: Teun Lassche <contact@thlassche.nl>
9 years ago
Roger A. Light 6f7a0bff4b [323] Allow outgoing IPv6 connections to use TLS.
Bug: https://github.com/eclipse/mosquitto/issues/323
9 years ago
Roger A. Light 1abd089afb [295] Usage should say we support 3.1.1 as well as 3.1.
Closes #295.

Bug: https://github.com/eclipse/mosquitto/issues/295
9 years ago
Roger A. Light 51bfdc9ed4 Improve logo files.
Make mosquitto-logo-only.svg square.
Add mosquitto-logo-min.svg which is more suitable for very small images.
9 years ago
Roger A. Light b3a1604646 Update changelog. 9 years ago
tucic f272e2e047 Maximum connections for websockets listener (#271)
Check current number of connections before accepting new websockets clients.

Signed-off-by: tucic <tucic.milan@gmail.com>
9 years ago
David Audet 5487395fb6 Adding Dockerfiles to build versioned Docker images (#226)
* Adding Dockerfiles to build versioned Docker images

Dockerfiles have been added to create Docker
images for Mosquitto v1.4.4 and v1.4.8 using Alpine
Linux as a base.

Different directories have been added for each version
to decouple the configuration and entrypoint scripts.
Currently they contain the same content, but this could
change in the future.

Docker Hub will also need to pull from specific directories
when official docker images will be built and hosted on
Docker Hub.

* Removing unnecessary default config and volumes

Mount points are created in the image, but volumes are not automatically
created. The user can still create volumes for these mount points, but is
not required to.

The default configuration file is now copied from /etc/mosquitto/mosquitto.conf
to /mosquitto/config/mosquitto.conf. The user can override this file by
mounting a local configuration file to /mosquitto/config.

Signed-off-by: David Audet <david.audet@ca.com>
9 years ago
Roger A. Light 762126064c [259] Fix crash when "lazy" type bridge attempts to reconnect.
Thanks to hakofugu41.

Bug: https://github.com/eclipse/mosquitto/issues/259
9 years ago
Roger A. Light 7ace6c9e7e Merge branch 'master' into fixes 9 years ago
Karl Palsson 03d4b8c270 websockets: fix compatibility with older lws versions (#260)
In 1.3, 1.4 and 1.5, the function was "libwebsockets_get_protocol" not
"libwebsocket_get_protocol"  While the #define name doesn't matter on
newer libwebsockets, where it redirects to lws_get_protocol, the naming
is critical for older versions.

Fixes: 477cd3e399 (Fix missing context->listener for websocket client)

Signed-off-by: Karl Palsson <karlp@etactica.com>
9 years ago
Roger A. Light ee1fd1718b Merge branch 'fixes' 9 years ago
Roger A. Light 87b6a746fd Bump version number. 9 years ago
kcallin 7ba3f3d33b [189] Mosquitto database corrupted on power-loss. (#206)
Mosquitto database writes are not atomic and if power is lost during
a write the file will be permanently lost.  This commit makes writes as
atomic as possible.

Signed-off-by: Keegan Callin <kc@kcallin.net>
Bug: https://github.com/eclipse/mosquitto/issues/189
9 years ago
Roger A. Light ba2de88790 Display error if broker unable to open the log file.
Thanks to Matthew Treinish.

Bug: https://github.com/eclipse/mosquitto/issues/234
9 years ago
Pierre Fersing 477cd3e399 Fix missing context->listener for websocket client (#239)
The context associated with websocket client didn't had listener
filled, which caused use_username_as_clientid to be ignored.

Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
9 years ago
Roger A. Light 00aa181749 [244] Add note on compiling auth plugin on OSX.
Closes #244.

Bug: https://github.com/eclipse/mosquitto/issues/244
9 years ago
Roger A. Light a0d6da1604 [225] Fix typo in man page.
Closes #225. Thanks to Nabytovych.

Bug: https://github.com/eclipse/mosquitto/issues/225
9 years ago
Roger A. Light 79cc06b180 [237] Fix memory leak when verifying a server certificate.
Only for certificates with a subjectAltName. Closes #237.

Thanks to MrSaturday.

Bug: https://github.com/eclipse/mosquitto/issues/237
9 years ago
Roger A. Light bcfa29cbd1 [222] Fix will retained flag handling on Windows.
Thanks to codami.

Bug: https://github.com/eclipse/mosquitto/issues/222
9 years ago
Roger A. Light f06a947df2 Update changelog. 9 years ago
Roger A. Light 3261b307e3 Updated readme.md. 9 years ago
tucic 50b26347d4 Writing least significant byte of subscription QoS (#210)
Signed-off-by: Milan Tucic <tucic.milan@gmail.com>
9 years ago
Roger A. Light b6385d347a [198] Update Changelog.
Closes #198.

Bug: https://github.com/eclipse/mosquitto/pull/198
9 years ago
jbwdevries 1c90a4487c Fixes a bug where the C++ wrapper would always claim SOCKS was not supported. (#198)
The WITH_* flags are not handed over to the C++ wrapper, instead it relies on
the actual library to check status.

Signed-off-by: Johan de Vries (Ubuntu VM) <devries@wivion.nl>
9 years ago
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 2c54104ce3 [191] Fix some $SYS messages being incorrectly persisted.
Closes #191.

Bug: https://github.com/eclipse/mosquitto/issues/191
9 years ago
Roger Light d813e11ca7 Merge pull request #175 from jcavar/master
Change pod name to Mosquitto
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 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 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