Roger A. Light
0da723c1ec
Add `--random-filter` to mosquitto_sub.
6 years ago
Roger A. Light
d96543c0b8
Merge branch 'fixes' into develop
6 years ago
Roger A. Light
b0a065f790
Update changelog. Release page. Bump copyright.
6 years ago
Roger A. Light
f16d9e2bcf
Add file missing from earlier commit.
6 years ago
Roger A. Light
17e20de9e7
Fix session-expiry-interval for v5 clients using -c.
...
Default behaviour for v5 clients using `-c` is now to use infinite length
sessions, as with v3 clients.
Closes #1546 . Thanks to Kiran Pradeep.
6 years ago
Roger A. Light
019d4214b8
Fix session-expiry-interval for v5 clients using -c.
...
Default behaviour for v5 clients using `-c` is now to use infinite length
sessions, as with v3 clients.
Closes #1546 . Thanks to Kiran Pradeep.
6 years ago
Roger A. Light
56d0b950ac
Fix `--remove-retained` not obeying the `-T` option.
...
This means `--remove-retained -t bbc/# -T bbc/one/#` would remove all
retained messages in `bbc/#`, instead of leaving all of the topics in
`bbc/one/#`.
Closes #1585 . Thanks to Simon Moser.
6 years ago
Roger A. Light
3671a6dfdb
Add `-x` argument to all clients.
...
This allows the session-expiry-interval property to be easily set for
MQTT v5 clients.
6 years ago
Roger A. Light
4e1e0f955f
Record of which client argument letters are in use.
6 years ago
Roger A. Light
6aa9b91fff
Add `testing` target for compiling test client fixes.
6 years ago
Roger A. Light
d60e86d2a3
Add TCP_NODELAY support to lib and clients.
...
Closes #1526 . Thanks to Felix Moessbauer.
6 years ago
Roger A. Light
c0443637e8
Merge branch 'master'
...
Conflicts:
ChangeLog.txt
config.mk
src/context.c
src/loop.c
src/subs.c
test/broker/01-connect-bad-packet.py
test/broker/02-subpub-qos1-bad-pubcomp.py
test/broker/02-subpub-qos1-bad-pubrec.py
test/broker/02-subpub-qos2-bad-puback-1.py
test/broker/02-subpub-qos2-bad-puback-2.py
test/broker/02-subpub-qos2-bad-pubcomp.py
test/broker/02-subpub-qos2.py
test/broker/07-will-null-topic.py
6 years ago
Basavesh Shivakumar
9bebab46ca
In sub_client.c, call mosquitto_destroy()
...
Fixes : #1513 and frees resources when someone terminates
via SIGTERM or SIGINT.
Signed-off-by: Basavesh Shivakumar <basavesh.shivakumar@gmail.com>
6 years ago
Roger A. Light
1e04b22833
Fix `mosquitto_pub -l` not sending the final line of stdin
...
This would happen if the final line did not end with a new line.
Closes #1473 . Thanks to majekw.
6 years ago
Roger A. Light
6bde209799
Added `CLIENT_STATIC_LDADD` to makefile builds
...
This allow more libraries to be linked when compiling the clients with a
static libmosquitto, as required for e.g. openssl on some systems.
Closes #1371 . Thanks to Fabrice Fontaine.
6 years ago
Roger A. Light
22eb193309
Merge branch 'stdin-fix-1' of git://github.com/majekw/mosquitto into majekw-stdin-fix-1
6 years ago
Roger A. Light
9cdc822a19
Add changelog, change msg text for previous merge.
6 years ago
Roger Light
dc21bc513c
Merge pull request #1430 from abiliojr/exit-on-no-subscription
...
mosquitto_sub: Exit on all subscription denied
6 years ago
Roger A. Light
aabf850a62
Separate pub client loops for better readability.
6 years ago
Roger A. Light
74e1f77310
Fix for previous commit
...
Stdin mode wouldn't work with normal compiler optimisation levels.
6 years ago
Roger Light
4e7e6c641f
Merge pull request #1473 from majekw/stdin-rewrite
...
mosquitto_pub: split main loop.
6 years ago
Roger Light
1c6666b63a
Add user-property output support to sub/rr.
6 years ago
Roger A. Light
59c0bfe6e1
Add support for v5 property printing to mosquitto_sub/rr in non-JSON mode.
6 years ago
Roger A. Light
9e4226622f
Add `--pretty` option to mosquitto_sub/rr
...
If active, this produces formatted JSON output rather than the normal
minimised output.
6 years ago
Roger Light
e5237ae7e5
Add support for sub/rr v5 prop output in JSON mode
6 years ago
Roger A. Light
ad5c2e11d9
Use cJSON for producing JSON output in clients.
...
Closes #1222 . Thanks to Ben Barbour.
6 years ago
majekw
50c9a4b0b0
Fix `mosquitto_pub -l` hang when stdin stream ends. Closes #1448 .
...
Signed-off-by: Marek Wodzinski <majek@w7i.pl>
6 years ago
Roger A. Light
8a4ae28fa9
Fix duplicate cfg definition in rr_client.
...
Closes #1453 . Thanks to jveber.
6 years ago
Roger A. Light
499e2f2e98
Add support for unix sockets to broker, lib, and clients.
6 years ago
Marek Wodzinski
ede9f2a51d
mosquitto_pub: split main loop.
...
Main loop has two different logics inside: one for stdin input,
second for all other cases. Exit loop condition is also different
for both variants. This commit splits these two variants into
two separate loops.
Signed-off-by: Marek Wodzinski <majek@w7i.pl>
6 years ago
Abilio Marques
fb8d03db28
mosquitto_sub exits if no subscription is granted
...
Signed-off-by: Abilio Marques <abiliojr@gmail.com>
6 years ago
Roger A. Light
54ed3c0fc9
Merge branch 'master' into develop
6 years ago
Roger A. Light
0a8358243b
mosquitto_sub: Fix `-E` not working unless `-d` was also specified.
...
Closes #1418 . Thanks to Lichard Torman.
6 years ago
Roger A. Light
c1e488cb88
Add timeout return code (27) for sub/rr using -W.
...
Closes #275 .
6 years ago
Roger A. Light
a0e7165a9c
Fix WITH_STATIC_LIBRARIES using CMake on Windows
...
Closes #1369 . Thanks to TimmvonderMehden
6 years ago
YangHau
b2aed5cb7e
feat: Remove unecessary if statement
...
free() would take no action if the arguement is a NULL pointer.
Therefore, the if statement is totally unnecessary.
See ISO-IEC 9899
Signed-off-by: YangHau <vulxj0j8j8@gmail.com>
6 years ago
Roger A. Light
a22ccbd884
Clients: improve error msgs when connecting v3.x broker with v5 client
...
Closes #1344 . Thanks to HowJMay.
6 years ago
Roger Light
1079a1b697
Merge pull request #1342 from HowJMay/remove_redundant_reset
...
Remove redundant initialization in clients
6 years ago
Roger A. Light
b807daed28
Fix error codes not being returned when mosquitto_pub exits.
...
Closes #1354 . Thanks to Ben Barbour.
6 years ago
YangHau
9bb9b6e721
Remove redundant initialization in clients
...
the `memset(&cfg, 0, sizeof(struct mosq_config));` already exsits in
`client_config_load()`'s `init_config()` function call.
So calling it in main function is totally unnecessary.
Signed-off-by: YangHau <vulxj0j8j8@gmail.com>
6 years ago
Roger A. Light
af7760f1b6
Fix build for WITH_SOCKS=no.
6 years ago
Roger A. Light
c685b7ecf4
Fix `mosquitto_pub -l` not handling zero length input.
...
Closes #1302 . Thanks to Marcus Watkins.
6 years ago
Roger A. Light
31f448f35a
Fix MQTT v5 clients not being able to specify a password without a username.
...
Thanks to Erik Moqvist.
Closes #1274 .
6 years ago
Roger A. Light
4d54a51c62
Stop some error messages being printed even when `--quiet` was used.
...
Thanks to Rob de Jonge.
Closes #1284 .
6 years ago
Roger A. Light
7d954fa52e
Fix `mosquitto_pub -l` not handling network failures.
...
Closes #1152 . Thanks to Dustin Sallings.
6 years ago
Roger A. Light
1bafe0ee2e
Fix double free on exit in mosquitto_pub.
...
Closes #1280 . Thanks to Lucky Saini.
6 years ago
Roger A. Light
b4dfeb3767
Fix MQTT v5 clients not being able to specify a password without a username.
...
Thanks to Erik Moqvist.
Closes #1274 .
6 years ago
Roger A. Light
999c478c88
Fixes for bug #1273
...
* Fix Will message for a persistent client incorrectly being sent when the client reconnects after a clean disconnect.
* Fix Will message for a persistent client not being sent on disconnect.
* Fix mosquitto_pub not using the `-c` option.
Thanks to Yannic Schröder.
Closes #1273 .
6 years ago
Roger A. Light
29cf965b4f
Fix mosquitto_pub exiting with error code 0 when an error occurred.
...
Thanks to janniswarnat.
Closes #1285 .
6 years ago
Roger A. Light
7a33a129d6
Stop some error messages being printed even when `--quiet` was used.
...
Thanks to Rob de Jonge.
Closes #1284 .
6 years ago