Commit Graph

9 Commits (2f4207e8330a7e893a8cb04397cb45ea0250e245)

Author SHA1 Message Date
Dan White 2f4207e833 mosquitto_pub: exit if broker actively refuses a connection
Fixes eclipse/mosquitto#1904

If the broker rejects the connection, as opposed to the broker being
down, then there is no hope to establish a connection.  This adds a
status flag so we can signal to the loop that we should just exit.

Signed-off-by: Dan White <dan.white@valpo.edu>
5 years ago
Roger A. Light b0a065f790 Update changelog. Release page. Bump copyright. 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 A. Light 7d954fa52e Fix `mosquitto_pub -l` not handling network failures.
Closes #1152. Thanks to Dustin Sallings.
6 years ago
Roger Light 930a314caf Add reason_code to on_publish_v5 callback. 7 years ago
Roger A. Light 5073d83bf8 Don't generate client ids in v5 mode. 7 years ago
Roger Light 47129e395e Use v5 callback in pub client. 7 years ago
Roger A. Light 85d9cfa2fa Fix pub client stdin mode. 7 years ago
Roger A. Light dd158ffeb3 Split common publish code into separate file. 7 years ago