Commit Graph

2518 Commits (dynamic-bridge)
 

Author SHA1 Message Date
Roger A. Light 2760985f1e Fix man page installation.
Closes #2363. Thanks to yvs2014.
4 years ago
Roger Light 90566d3f9e
Merge pull request #2318 from cdelston0/dynamic-bridge
Fix dynamic bridge start-up delay
4 years ago
Chris Elston 63d400dc50 Additional bridge parameters for dynamic bridges
Signed-off-by: Chris Elston <chris.elston@sancloud.com>

Adds the following bridge configuration as parameters for dynamic
bridges:
- remote_username
- try_private
- notification_topic
- remote_clientid
4 years ago
Chris Elston 8491fd4a0c Fix segfault in dynamic bridge support
Signed-off-by: Chris Elston <chris.elston@sancloud.com>

Sending an empty packet to $BRIDGE/new would cause a segfault because
the payload pointer was accessed without checking for NULL.

This change rejects an empty payload with MOSQ_ERR_INVAL.
4 years ago
Chris Elston cd3b588601 Fix dynamic bridge start-up delay
Signed-off-by: Chris Elston <chris.elston@sancloud.com>

The first packet sent by a dynamic bridge was failing because it was
sent before the socket was fully established and the OS returned
-EAGAIN. We had to wait for the next PINGREQ to cause the initial packet
to be sent, and therefore bridge startup was delayed by the
configured keepalive timeout (default 60 seconds).

This change adds the new bridge's output socket to the list managed by
the mux, and we now send the initial CONNECT as soon as the output
socket becomes available.
4 years ago
Roger Light 2b866904aa
Merge pull request #1926 from Tifaifai/Bridge-Dynamic_2.0
Bridge dynamic 2.0
5 years ago
Roger Light ec1cad0870
Merge pull request #1964 from nullr0ute/fix-plugins-install-64bit
Use libdir as the install prefix for plugins
5 years ago
Roger A. Light 0ec258d01f Fix incorrect string length calculation.
Closes #1963. Thanks to twegener-embertec.
5 years ago
Peter Robinson 9d7580fdb6 Use libdir as the install prefix for plugins
Use the libdir variable from config.mk just like lib/ uses to ensure
that the plugins are installed into the same location as the library.
This fixes systems that use lib64 for libraries like most 64 bit
Linux distributions.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
5 years ago
Roger A. Light e97cf6252e Attempt to fix snap build. 5 years ago
Roger A. Light 119b883e86 Update docker builds. 5 years ago
Roger A. Light 2cc12adcab Merge branch 'fixes' 5 years ago
Roger A. Light d02bc03ed8 Bump version, changelog and webpage. 5 years ago
Roger A. Light f930970008 Fix persistence_location not appending a '/'. 5 years ago
Roger A. Light 99e8c8001d Build lib from in mosquitto_ctrl directory. 5 years ago
Roger A. Light 2d9d1beee4 Fix ChangeLog error. Closes #1941. 5 years ago
Roger A. Light f10de9831a Fix slow initial bridge connections for WITH_ADNS=no. 5 years ago
Roger Light f32d9ae97c
Merge pull request #1933 from Hallot/bug/cmake-module-path
Fix issue with CMAKE_MODULE_PATH
5 years ago
Roger A. Light 1d92184b2f Fix local bridges being disconnected on SIGHUP.
Closes #1942. Thanks to charlemagnelasse.
5 years ago
Roger A. Light 00c68203b8 Fix QoS 0 messages not being delivered if max_queued_messages was set to 0.
Closes #1956. Thanks to nduhme.
5 years ago
Roger A. Light d05a49a2cf Fix bridges possibly not completing connections when WITH_ADNS is in use.
Closes #1960. Thanks to twegener-embertec.
5 years ago
Roger A. Light de141540fb Fix mosquitto_sub being unable to terminate with Ctrl-C.
This occured if a successful connection was not made.

Closes #1957. Thanks to Peoh.
5 years ago
Roger Light 7a7fe8b80a
Merge pull request #1959 from peteakalad/master
Systemd service changes for updated pid path
5 years ago
Peter Stevenson 8a44e5940c Systemd service changes for updated pid path.
Signed-off-by: Peter Stevenson <pete@ihut.co.uk>
5 years ago
Pierre Hallot 57d2818a3d
Fix appending CMake module path to existing path
The code would simply append the folder with no separator, resulting in an invalid path if the variable was not empty.
Now properly append it.

Signed-off-by: Pierre Hallot <hallotpierre@gmail.com>
5 years ago
Pierre Hallot ddb0f21ab5
Set cmake_minimum_required first as recommended in the documentation
https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html
"Note Call the cmake_minimum_required() command at the beginning of the top-level CMakeLists.txt file even before calling the project() command. It is important to establish version and policy settings before invoking other commands whose behavior they may affect."

Signed-off-by: Pierre Hallot <hallotpierre@gmail.com>
5 years ago
Pierre Hallot 4dcfe5424f
Remove CMAKE_LEGACY_CYGWIN_WIN32 which is not needed anymore
According to this from the mailing list, it is no longer required since the minimum cmake required is 3.0.

https://cmake.org/pipermail/cmake/2014-July/058048.html
"The code that emits the warning is run by "project()". Since you do not have an explicit project() call in your top-level CMakeLists.txt CMake adds one to the top implicitly. [1]
A project file that explicitly calls project() after requiring CMake >= 2.8.4 should make the warning go away."

Signed-off-by: Pierre Hallot <hallotpierre@gmail.com>
5 years ago
Roger Light 113603168b Fix LWT not being sent on client takeover.
This was not happening for the case when the existing session wasn't
being continued.

Closes #1946. Thanks to Rory Piper.
5 years ago
Roger Light 74f3285cf8 Fix `generic` docker build.
Closes #1945. Thanks to Andreas Schildbach.
5 years ago
Roger Light f63386bf4a Fix `mosquitto_passwd -b` using username as password.
Only applies if if `-c` is not also used.

Closes #1949. Thanks to J. Augusto de Oliveira.
5 years ago
Roger A. Light abac67299f Fix excessive CPU use on non-Linux systems when the open file limit is set high.
Closes #1947. Thanks to Patrick TJ McPhee.
5 years ago
Tifaifai Maupiti 1f6fa8d771 Resolve conflict
Signed-off-by: Tifaifai Maupiti <tifaifai.maupiti@gmail.com>
5 years ago
Tifaifai Maupiti efa0ff6908 Fix security, remove }
Signed-off-by: Tifaifai Maupiti <tifaifai.maupiti@gmail.com>
5 years ago
Tifaifai Maupiti 360d9be7d8 Remove allow_sys_update used and deprecated
Signed-off-by: Tifaifai Maupiti <tifaifai.maupiti@gmail.com>
5 years ago
Tifaifai Maupiti 7f9b017552 Fix for travis - websockets
Signed-off-by: Tifaifai Maupiti <tifaifai.maupiti@gmail.com>
5 years ago
Tifaifai Maupiti b14eafd5ec Bridge Dynamic Update 2.0.0
Signed-off-by: Tifaifai Maupiti <tifaifai.maupiti@gmail.com>
5 years ago
Roger A. Light f7dc138157 Fix `install` target when using WITH_CJSON=no.
Closes #1938. Thanks to apple3306 and JulianCaruso.
5 years ago
Roger A. Light cc47eaba09 Bump version number and update webpage. 5 years ago
Roger A. Light ecf6f9079a Fix build regression for WITH_WEBSOCKETS=yes on non-Linux systems. 5 years ago
Roger A. Light 38b930776c Update docker builds 5 years ago
Roger A. Light f9259a2ba0 Merge branch 'fixes' 5 years ago
Roger A. Light 2307c9fa07 Update web pages. 5 years ago
Roger A. Light 36eb5ca0c9 Bump changelog date. 5 years ago
Roger A. Light 757902bcf8 Improve struct packing. 5 years ago
Roger A. Light 37ce51703f Fix websockets listeners not causing the main loop not to wake up.
Closes #1936. Thanks to sectokia.
5 years ago
Roger A. Light f54360d228 Don't install example plugins. 5 years ago
Roger A. Light 66b680af34 Bump version number. 5 years ago
Roger A. Light 39ba40fd53 Fix letsencrypt instruction typo.
Closes #1939. Thanks to Frank Tegtmeyer.
5 years ago
Roger A. Light d8dcfd75fe lib: Fix DH group not being set for TLS connections.
This meant ciphers using DHE couldn't be used.

Closes #1925. Closes #1476. Thanks to Jonathan Sönnerup, Valerii
Demeshko, and sectokia.
5 years ago
Roger A. Light b7f0161f52 Fix DH group not being set for TLS connections.
This meant ciphers using DHE couldn't be used.

Closes #1925. Closes #1476. Thanks to Jonathan Sönnerup, Valerii
Demeshko, and sectokia.
5 years ago