Roger A. Light
6ef2c79e9a
Add max_keepalive, for limiting keepalives of MQTT v5 clients.
7 years ago
Roger A. Light
48c2217015
auto_id_prefix now defaults to 'auto-'.
7 years ago
Roger A. Light
c9ed2708f6
Don't reload auth_opt_ options on reload.
...
This matches the behaviour of the other plugin options.
Closes #1068 . Thanks to Jason McFadyen.
Bug: https://github.com/eclipse/mosquitto/issues/1068
7 years ago
Roger A. Light
d29dac087d
Add socket_domain option.
7 years ago
Roger A. Light
54db895cb3
Rename clean_session to clean_start for v5.
7 years ago
Roger Light
9560c5bac7
Add retain_available support.
7 years ago
Roger A. Light
35dea07dcd
Merge branch 'master'
7 years ago
Roger Light
6c9e8d51c2
Merge branch 'develop' into mqtt5
7 years ago
Vinod Kumar
e492a61cd8
return MOSQ_ERR_INVAL if config has invalid boolean value
...
Signed-off-by: Vinod Kumar <kumar003vinod@gmail.com>
7 years ago
Roger A. Light
588d39efdc
Fix Windows version not starting if include_dir did not contain any files.
...
Closes #566 .
Thanks to marleau.
7 years ago
Roger A. Light
2b4ba10b3d
Fix "round_robin false" behaviour.
...
Closes #481 .
7 years ago
Roger A. Light
0bacff11df
Rename mqtt3_protocol.h -> mqtt_protocol.h.
7 years ago
Roger A. Light
af2678ea49
Fix possible endian issue when reading the `memory_limit` option.
...
Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light
b07e0c08bf
Fix IPv6 addresses not being able to be used as bridge addresses.
...
Closes #886 .
Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light
bcf76b9cb6
Remove use of AI_ADDRCONFIG.
...
Closes #869 , #901 .
Thanks to Alex Richman.
Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light
286400abcf
Use AF_UNSPEC etc. instead of PF_UNSPEC to comply with POSIX.
...
Closes #863 .
Thanks to denigmus and Patrick TJ McPhee.
Signed-off-by: Roger A. Light <roger@atchoo.org>
7 years ago
Roger A. Light
5e60136449
Merge branch 'develop'
8 years ago
Roger A. Light
377dc82d3f
Fix parsing of configuration options that end with a space.
...
Closes #804 .
Thanks to Nicola Lunghi.
8 years ago
Roger A. Light
23230b7b18
Add per-listener acl handling.
8 years ago
Roger A. Light
7bf16919f3
Validate config strings as UTF-8.
8 years ago
Roger A. Light
6a2172f472
Windows fixes.
8 years ago
Roger A. Light
24d68b5af8
Remove support for openssl 1.0.0 and 1.0.1.
...
These are no longer supported by openssl.
8 years ago
Roger A. Light
f4d238be18
Bump copyright years.
8 years ago
Roger A. Light
d982c265cb
Fix signed/unsigned comparison.
...
Closes #747 , closes #753 .
8 years ago
Roger A. Light
40e6a75709
Use c99 as compiling standard.
...
Closes : #765 .
8 years ago
Roger A. Light
d09d7c47c5
Further Coverity Scan fixes.
8 years ago
Roger A. Light
dbdd113c86
Merge branch 'develop' of github.com:eclipse/mosquitto into develop
8 years ago
Roger A. Light
8a22b918c0
Fix Coverity Scan defects.
8 years ago
Roger A. Light
a979ed6535
Per listener plugins.
8 years ago
Roger A. Light
a3b859a995
Remove name confusion
8 years ago
Roger A. Light
26bc3206cd
Per listener allow_zero_length_clientid.
8 years ago
Roger A. Light
7271893966
Per listener auto_id_prefix.
8 years ago
Roger A. Light
4e266ff28f
Copy default parameters.
8 years ago
Roger A. Light
fd7b08c0eb
Per listener psk_file.
8 years ago
Roger A. Light
b2e1592376
Per listener allow_anonymous.
8 years ago
Roger A. Light
aa87f3c170
Per listener allow_anonymous.
8 years ago
Roger A. Light
a571104809
Check correct password list.
8 years ago
Roger A. Light
57e852db05
Per listener password file.
8 years ago
Roger A. Light
bc13eab9d6
Add per_listener_settings, which isn't used yet.
8 years ago
Roger A. Light
4f838e5161
Windows fixes.
8 years ago
Roger A. Light
5b2bf3d1c1
Bump version number, update copyrights.
8 years ago
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
2283585e39
Remove build timestamp information for reproducible builds.
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
0745bcdb91
Improve some struct ordering.
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
e74203de2c
Merge branch 'master' into develop
8 years ago
Dr. Lars Voelker
74adb43cc1
Adding OCSP Stapling support to mosquitto
...
Adding OCSP Stapling support to mosquitto, so that the TLS client side
requests the certificate status and checks it.
This code uses the OpenSSL-based OCSP implementation and is somewhat
based on the libcurl code for OCSP stapling.
Signed-off-by: Dr. Lars Voelker <lars.voelker@bmw.de>
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
6e7d02ba16
Fix for CVE-2017-9868 for Windows.
8 years ago
Roger A. Light
bb61cd2dee
Fix merge error.
8 years ago
Roger A. Light
b61fefcf08
Merge branch 'master' into develop
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
91b308a11d
Merge branch 'master' into develop
9 years ago
Fredrik Fornwall
54a467d782
Include <syslog.h> instead of <sys/syslog.h>
...
Using the standard <syslog.h> header instead of <sys/syslog.h> makes it
consistent with other source files and fixes compilation on Android.
Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
9 years ago
Roger A. Light
ed80a9a526
[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
Fredrik Fornwall
23b0891048
Include <syslog.h> instead of <sys/syslog.h>
...
Using the standard <syslog.h> header instead of <sys/syslog.h> makes it
consistent with other source files and fixes compilation on Android.
Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
9 years ago
Ben Hardill
740b710a0b
Add support for local only bridge notifications ( #328 )
...
This update adds an option to only publishes bridge
notification messages to the local side of the bridge.
It adds a config file option called notifications_local_only
that accepts a boolean value, defaults to false to be
consistent with existing behaviour.
Fixes #233
Signed-off-by: Ben Hardill <hardillb@uk.ibm.com>
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
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
641158aed9
config: garbage line number if file not found
...
If the file is not found, showing 0 rather than a garbage number is
mildly better.
Signed-off-by: Karl Palsson <karlp@etactica.com>
9 years ago
Roger A. Light
017db6706f
Rename mosquitto_broker.h -> mosquitto_broker_internal.h
9 years ago
Roger A. Light
8378fe44cf
Update copyrights.
9 years ago
Roger A. Light
2b2279363b
Bridge defaults to mqtt3.1.1 as per documentation.
9 years ago
Roger A. Light
1c3988a397
Merge branch 'master' into develop
9 years ago
Roger A. Light
8663d6aff7
Merge branch 'master' of github.com:eclipse/mosquitto
9 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
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
Roger A. Light
37dceb38f9
Fix some defects discovered by coverity.
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
4b9b792d16
Update all mqtt 3.1 references to 3.1.1 where appropriate.
10 years ago
Roger A. Light
b4fbe904d4
Remove more unnecessary "if(x) mosquitto__free(x)" checks.
10 years ago
Roger Light
e2324ff9bb
Merge remote-tracking branch 'remotes/origin/master' into develop
...
Conflicts:
CMakeLists.txt
ChangeLog.txt
THANKS.txt
appveyor.yml
config.mk
installer/mosquitto-cygwin.nsi
installer/mosquitto.nsi
lib/messages_mosq.c
lib/messages_mosq.h
lib/mosquitto.c
lib/mosquitto.h
lib/net_mosq.c
lib/net_mosq.h
lib/send_client_mosq.c
lib/send_mosq.c
lib/socks_mosq.c
lib/will_mosq.c
src/bridge.c
src/conf.c
src/context.c
src/database.c
src/loop.c
src/mosquitto.c
src/mosquitto_broker.h
src/net.c
src/read_handle.c
src/read_handle_server.c
src/subs.c
10 years ago
Roger A. Light
3f86d316d8
Allow mosquitto__free(NULL).
...
Remove all unnecessary "if(X)" before a call to mosquitto__free.
10 years ago
Anmol Sarma
13d869b8df
Avoid calls to strlen() when checking for empty strings.
...
Change-Id: I3de322006623483cbf20218da071a9da5d7b2e2b
Signed-off-by: Anmol Sarma <me@anmolsarma.in>
10 years ago
Anmol Sarma
343e833fd9
Remove superfluous branch.
...
Signed-off-by: Anmol Sarma <me@anmolsarma.in>
10 years ago
Roger A. Light
5c642c9cfd
[464543] Add defer support for plugins.
...
Partial fix for 464543.
10 years ago
Fabian Ruff
f0511d0ff7
Add user_subject_as_username option
...
This adds an alternative option to use_identity_as_username.
In contrast to use_identity_as_username this option uses the full x509 subject as the username.
The subject is formatted as an rfc4514 distingushed name e.g. CN=client,OU=unit,O=org
Signed-off-by: Fabian Ruff <fabian@progra.de>
10 years ago
Roger A. Light
e469843ed9
Produce an error if two bridges share the same local_clientid.
10 years ago
Roger A. Light
cdbe62c2bb
Outgoing messages with QoS>0 are no longer retried after a timeout.
...
This change in behaviour can be justified by considering when the
timeout may have occurred.
* If a connection is unreliable and has dropped, but without one end
noticing, the messages will be retried on reconnection. Sending
additional PUBLISH or PUBREL would not have changed anything.
* If a client is overloaded/unable to respond/has a slow connection then
sending additional PUBLISH or PUBREL would not help the client catch
up. Once the backlog has cleared the client will respond. If it is not
able to catch up, sending additional duplicates would not help either.
11 years ago
Roger A. Light
0733b3f68b
Fix use of sprintf.
11 years ago
Roger A. Light
21946ace6c
mosquitto__log_printf -> log__printf
11 years ago
Roger A. Light
cdb1cf9b13
Remove typos.
11 years ago
Roger A. Light
15b291eaa4
Remove unsigned comparison against <0.
...
Coverity CID 1292471.
11 years ago
Roger A. Light
b67c90ec02
Rename internal datatypes.
11 years ago
Roger A. Light
94ef6ec7bb
Big set of function renames.
11 years ago
Roger A. Light
b598aec385
Sys -> user includes.
11 years ago
Roger A. Light
11d0d887f0
Fix parsing of auth_opt_ arguments with extra spaces/tabs.
11 years ago
Roger A. Light
11756d24c8
Change internal funcs _foo_bar() to foo__bar().
11 years ago
Roger A. Light
7cd14725da
Fix compiler warning.
11 years ago
Roger A. Light
502c3e7563
[461619] Disconnect idle websockets clients.
...
Websockets clients are now periodically disconnected if they have not
maintained their keepalive timer.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=461619
11 years ago
Roger A. Light
c6450ac265
[462154] Fix problems parsing config strings with leading spaces.
...
Thanks to Aidan Gill.
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=462154
11 years ago
Roger A. Light
91c1972c1f
Consistent error message.
11 years ago
Roger A. Light
db86809ee9
Add websockets logging options.
11 years ago
Roger A. Light
8b1560def0
Parse config strings as entire line.
11 years ago
Roger A. Light
626857b20a
Close and reopen log_dest file on HUP.
11 years ago