Roger A. Light
e6cbff0e94
Fix unauthorised clients being able to cause OOM on connect.
8 years ago
Roger A. Light
b76982db13
Fix reloading of config when fds are exhausted.
8 years ago
Roger A. Light
ec63d7bfc7
Add set_tcp_nodelay option to disable Nagle's algorithm.
...
Bug: https://github.com/eclipse/mosquitto/issues/433
8 years ago
Roger A. Light
81cb7ab547
Merge branch 'fixes' into develop
8 years ago
Roger A. Light
c001e778c1
[693] Fix handling of null bytes in received strings.
...
Thanks to Umberto Boscolo.
Bug: https://github.com/eclipse/mosquitto/issues/693
8 years ago
Roger A. Light
1b702538f9
Add check and matches functions which take length arguments.
...
mosquitto_pub_topic_check2()
mosquitto_sub_topic_check2()
mosquitto_topic_matches_sub2()
8 years ago
Roger A. Light
15486f48e7
[636] Correctly handle empty files with "mosquitto_pub -l".
...
Thanks to Aleksandr Makarov.
Bug: https://github.com/eclipse/mosquitto/issues/676
8 years ago
Roger A. Light
2283585e39
Remove build timestamp information for reproducible builds.
8 years ago
Roger A. Light
58abadd307
Update changelog.
8 years ago
Tatsuzo Osawa
2cd553c883
Add Changelog for #667
...
Signed-off-by: Tatsuzo Osawa <tatsuzo.osawa@gmail.com>
8 years ago
Roger A. Light
b02c1a41bb
[670] Fix topic matching of foo/bar against foo/+/#
...
Thanks to mrdis.
Bug: https://github.com/eclipse/mosquitto/issues/670
8 years ago
Pierre Fersing
7775924bae
[534]Fix upgrade_outgoing_qos for retained message
8 years ago
Pierre Fersing
7df5c40004
Fix $SYS counters when message is sent over WS
...
Signed-off-by: Pierre Fersing <pierre.fersing@bleemeo.com>
8 years ago
Roger A. Light
b193918ca0
[649] Don't close socket again if nonblock fails.
...
Thanks to Edwin van den Oetelaar.
Bug: https://github.com/eclipse/mosquitto/issues/649
8 years ago
Roger A. Light
ae666b07ce
[654] Initialise "result" in mosquitto_topic_matches_sub.
...
Thanks to markhermelinggt.
Bug: https://github.com/eclipse/mosquitto/issues/654
8 years ago
Roger A. Light
7f82cdc753
[652] Don't limit config file lines to 1024 chars.
...
Bug: https://github.com/eclipse/mosquitto/issues/652
8 years ago
Roger A. Light
d2118aeb17
[636] Don't run TLS-PSK tests when disabled at compile time.
...
Thanks to 'TBK'.
Bug: https://github.com/eclipse/mosquitto/issues/636
8 years ago
Roger A. Light
8795f063d4
Add ability to deny access to SUBSCRIBE messages.
...
This is as well as the current read/write accesses. Currently for auth
plugins only.
8 years ago
Roger A. Light
a480a9daf9
Fix 08-ssl-bridge.py test when using async dns lookups.
...
Thanks to Tatsuzo Osawa.
Bug: https://github.com/eclipse/mosquitto/issues/507
8 years ago
Roger A. Light
22063013be
[490] Fix auth plugin+WS client+MOSQ_ERR_AUTH related crash.
...
Thanks to "hasunperera".
Bug: https://github.com/eclipse/mosquitto/issues/490
8 years ago
Roger A. Light
7943072b1f
Fix use_identity_as_username not working on websockets clients.
...
Thanks to achest.
8 years ago
Roger A. Light
53c71b2a77
Fix memory leak related to use_identity_as_username.
8 years ago
Roger A. Light
5a267368d7
Merge branch 'master' into develop
8 years ago
Roger A. Light
ba0122f9a9
Don't disable IPv6 support for websockets.
8 years ago
Roger A. Light
46630e7325
Update change log.
8 years ago
Roger A. Light
d8cc5bc4fe
Merge branch 'fixes' of github.com:eclipse/mosquitto into fixes
8 years ago
Roger A. Light
ef7a7850ac
Add -c to mosquitto_pub.
8 years ago
Roger A. Light
0ba0bc434e
Use constant time memcmp for password checks.
8 years ago
Roger A. Light
e74203de2c
Merge branch 'master' into develop
8 years ago
Roger A. Light
2a50b2e9bd
Fix regression from 1.4.13 where persistence data was not being saved.
8 years ago
Roger A. Light
6b351ce0f1
Bump version number.
8 years ago
Roger A. Light
cd17ca45cd
[462] Relax CVE-2017-7650 checks.
...
Checks for '/' are no longer made, this character is a much lower risk
and is widely used in usernames.
Bug: https://github.com/eclipse/mosquitto/issues/462
8 years ago
Roger A. Light
c3823c0a81
[462] Add auth_plugin_deny_special_chars option.
...
Auth plugins can be configured to disable the check for +# in
usernames/client ids with the auth_plugin_deny_special_chars option.
Thanks to wiebeytec.
Bug: https://github.com/eclipse/mosquitto/issues/462
8 years ago
Roger A. Light
5246a76f87
[477] Send will messages for connected clients when broker stops.
...
Thanks to mikeS7.
Bug: https://github.com/eclipse/mosquitto/issues/477
8 years ago
Roger A. Light
96db6d6644
Fix CONNECT check for reserved=0, as per MQTT v3.1.1 check MQTT-3.1.2-3.
8 years ago
Roger A. Light
6e7d02ba16
Fix for CVE-2017-9868 for Windows.
8 years ago
Roger A. Light
09cb1b61c8
[468] Set persistence file to only be readable by owner.
...
Not implemented on Windows.
Thanks to Moshe Zioni.
Bug: https://github.com/eclipse/mosquitto/issues/468
8 years ago
Roger A. Light
c78678607d
[427] Fix large retained messages over websockets.
...
Thanks to Brian Block.
Bug: https://github.com/eclipse/mosquitto/issues/427
8 years ago
Roger A. Light
326983d35e
[417] Fix lazy bridges not timing out for idle_timeout.
...
Thanks to spinachmedia.
Bug: https://github.com/eclipse/mosquitto/issues/417
8 years ago
Roger A. Light
c07ba2a3da
Experimental fix for poor websockets performance.
8 years ago
Roger A. Light
6d63468a28
Don't use / in auto-generated client ids.
8 years ago
Roger A. Light
b61fefcf08
Merge branch 'master' into develop
8 years ago
Roger A. Light
2897f71aba
Bump version number.
8 years ago
Roger A. Light
9af3c6958f
Fix for CVE-2017-7650.
8 years ago
Roger A. Light
ca8a507607
[446] Don't segfault on duplicate bridge names.
...
Thanks to Tifaifai Maupiti.
Bug: https://github.com/eclipse/mosquitto/issues/446
9 years ago
Roger A. Light
a421d40d42
Update changelog.
9 years ago
Roger A. Light
b92ffec74e
Fix documentation type WITH_DNS_SRV.
9 years ago
Roger A. Light
7c0e8fde81
Update changelog.
9 years ago
Roger A. Light
5115c84501
Update changelog.
9 years ago
Roger A. Light
3c8581a3ea
Update changelog.
9 years ago
Roger A. Light
a93a0c9bb1
[424]
...
Fix mosquitto.db from becoming corrupted due to client messages being
persisted with no stored message.
Thanks to codami.
Bug: https://github.com/eclipse/mosquitto/issues/424
9 years ago
Roger A. Light
91b308a11d
Merge branch 'master' into develop
9 years ago
Roger A. Light
bda9893713
Version bump.
9 years ago
Roger A. Light
cac5464f7f
Use of --ciphers no longer requires you to also pass --tls-version.
...
Closes #380 .
Bug: https://github.com/eclipse/mosquitto/issues/380
9 years ago
Roger A. Light
1a0240b5d5
[379] Improve mosquitto_passwd error messages.
...
Thanks to Jaimyn Mayer. Closes #379 .
Bug: https://github.com/eclipse/mosquitto/issues/379
9 years ago
Roger A. Light
e7c1507f88
Fix error message when websockets http_dir directory does not exist.
9 years ago
Roger A. Light
b01e32bd8b
[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
7279e48191
[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
8e4a80a928
[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
66683b96b0
Fix potential socket leakage when reconnecting.
...
Bug: https://github.com/eclipse/mosquitto/issues/304
9 years ago
Roger A. Light
98ea684906
[323] Allow outgoing IPv6 connections to use TLS.
...
Bug: https://github.com/eclipse/mosquitto/issues/323
9 years ago
Roger A. Light
2c5785376b
Update changelog.
9 years ago
Roger A. Light
6b68371dbe
[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
9f32d5c0ac
Version bump.
9 years ago
Roger A. Light
e4e81a0fb1
[111] Add mosquitto_userdata function to libmosquitto.
...
This allows retrieving mosq->userdata.
Bug: https://github.com/eclipse/mosquitto/issues/111
9 years ago
Roger A. Light
f72d9b3a34
[17] Sort include_dir files before loading them.
...
Bug: https://github.com/eclipse/mosquitto/issues/17
9 years ago
Roger A. Light
10c89751fa
Use of --ciphers no longer requires you to also pass --tls-version.
...
Closes #380 .
Bug: https://github.com/eclipse/mosquitto/issues/380
9 years ago
Roger A. Light
ebad302119
[379] Improve mosquitto_passwd error messages.
...
Thanks to Jaimyn Mayer. Closes #379 .
Bug: https://github.com/eclipse/mosquitto/issues/379
9 years ago
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
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
Roger A. Light
93464179f1
Update changelog.
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
b3a1604646
Update changelog.
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
Karl Palsson
2dec0ed895
broker: fix queue_qos0_messages behaviour
...
Prior, offline qos0 clients had an unlimited queue depth when
queue_qos0_messages was true.
Signed-off-by: Karl Palsson <karlp@etactica.com>
9 years ago
Karl Palsson
c6aac741c2
broker: support byte based queueing
...
Limiting queued message depth purely based on message count is hard to
control for memory constrained devices. The size of messages can vary
wildly, from a few bytes, to a few kilobytes. Support a new
max_queued_bytes option, and drop packets when the first limit is
reached. Option defaults to 0 (disabled) by default.
Support also a max_inflight_bytes variable, with similar behaviour.
Fixes (partof) https://github.com/eclipse/mosquitto/issues/100
This pulls up some helper routines for calculating whether to allow
inflight or queuing, resolving some inconsistences in connection
resumption.
Signed-off-by: Karl Palsson <karlp@etactica.com>
9 years ago
Karl Palsson
30c96f4a1c
broker: track stored messages in bytes as well as count
...
Instead of simply tracking the count of stored messages, keep track of
the total byte size of stored messages. While only informational at
this point, it provides the basis for byte based limits in the future.
Signed-off-by: Karl Palsson <karlp@etactica.com>
9 years ago
Roger A. Light
87b6a746fd
Bump version number.
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
Roger A. Light
840453c14f
Remove -x from mosquitto_sub - this is provided by -F now.
9 years ago
Roger A. Light
8140ce1f24
Add -F to mosquitto_sub to allow users to choose the output format.
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
8378fe44cf
Update copyrights.
9 years ago
Roger A. Light
b6385d347a
[198] Update Changelog.
...
Closes #198 .
Bug: https://github.com/eclipse/mosquitto/pull/198
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
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
Roger A. Light
a8a5daf06b
Check client topic inputs for valid UTF-8.
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 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
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
2d0af7309f
Bump version number.
9 years ago
Roger A. Light
30686f2dc9
Fix mosquitto_topic_matches_sub().
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
Roger A. Light
ff78cd7873
Fix publishing of $SYS/broker/clients/maximum.
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
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
9 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
99ea5cab7c
Default to using port 8883 when using TLS.
10 years ago
Roger A. Light
57da586703
Fix saving of persistence messages that start with a '/'.
...
Closes #151 . Thanks to Andrew Chambers.
Signed-off-by: Roger A. Light <roger@atchoo.org>
10 years ago
Roger A. Light
3048c5ba0d
Changelog update.
...
Fix reconnecting for bridges that use TLS on Windows.
Closes #154 .
Thanks to Dmitry Kaukov.
10 years ago
Roger A. Light
6704df8061
Bridge config parameters can now contain a space
...
Closes #150 .
Thanks to Sebastian Koch and Mikkel Kirkgaard Nielsen.
Bug: https://github.com/eclipse/mosquitto/issues/150
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
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
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
fda0cb3d45
Fix incorrect $SYS heap memory reporting when using ACLs.
10 years ago
Roger A. Light
abc2f3f9de
Network errors are printed correctly on Windows.
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
5cca6b4239
Bump version number.
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
Roger A. Light
26b015908e
Default to using MQTT v3.1.1.
10 years ago
Roger A. Light
1961404ec9
Add --retained-only to mosquitto_sub.
10 years ago
Roger A. Light
7709621911
Reorder helper function arguments for consistency.
10 years ago
Roger A. Light
d157e8c603
Add examples for subscribe_simple.
10 years ago
Roger A. Light
b83c58763d
Add mosquitto_subscribe_single()/multiple().
10 years ago
Roger A. Light
00491da031
[485143] Fix detection of broken connections on Windows.
...
Thanks to Pierre-Yves Boisbunon.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=485143
10 years ago
Roger A. Light
c7d4f4bcff
mosq->want_write should be cleared immediately before a call to SSL_write.
...
This allows clients using mosquitto_want_write() to get accurate results.
10 years ago
Roger A. Light
fca9ac84f7
Merge fixes into develop.
10 years ago
Roger A. Light
3aa698d023
Add -U to mosquitto_sub for unsubscribing from topics.
10 years ago
Roger A. Light
2549919413
Fix support for libwebsockets 1.22.
10 years ago
Roger A. Light
dc02e37af9
Bump version number.
10 years ago
Roger A. Light
7aa653c42f
Add support for libwebsockets 1.6.
10 years ago
Roger A. Light
c5a376489e
[483979] Fix "mosquitto_pub -l" stripping the final character on a line.
...
Thanks to Allan Kobelansky.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=483979
10 years ago
Roger A. Light
148df82144
[484693] Fix _mosquitto_socketpair() on Windows.
...
Thanks to Steve Woods and Roman Bogus.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=484693
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=479143
10 years ago
Roger A. Light
559e2438cb
Revert "Add support for sending direct messages to clients."
...
This reverts commit 8f54cde293
.
10 years ago
Roger A. Light
8f54cde293
Add support for sending direct messages to clients.
...
This works through $CLIENT/direct/<client id>, using the
allow_direct_messages option.
10 years ago
Roger A. Light
3cab5e2e69
Bump version number.
10 years ago
Roger A. Light
80300f8fa1
[468987] Free unused topic tree elements.
...
Fix in 1.4.3 was incomplete.
Thanks to Guido Hinderberger et al.
10 years ago
Roger A. Light
26eac3c1ca
Fix possible memory leak with bridges and SSL.
...
Fix possible memory leak if bridge using SSL attempts to connect to a
host that is not up.
Thanks to Ed Morris.
10 years ago
Roger A. Light
89763a51d9
[478917] Don't truncate lines with "mosquitto_pub -l"
...
Thanks to Jan-Piet Mens.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=478917
10 years ago
Roger A. Light
8ecb9291ab
Disable support for DNS SRV by default.
10 years ago
Roger A. Light
436d3fac19
Merge branch 'fixes' into develop
...
Conflicts:
CMakeLists.txt
ChangeLog.txt
config.mk
installer/mosquitto.nsi
installer/mosquitto64.nsi
lib/mosquitto.c
lib/mosquitto.h
src/loop.c
10 years ago