Commit cdfa2252 authored by Dan White's avatar Dan White Committed by Roger Light
Browse files

mosquitto_pub: exit if server becomes unreachable and QOS > 0



Fixes eclipse/mosquitto#1899

In stdin line mode, mosquitto_pub will continue running and accepting
input even if/when/after publishing fails.  This condition is reached
when it first successfully establishes a connection and the server later
is unreachable.

Exiting with a non-zero exit code allows for much easier health
monitoring when used in a long-running pipe.

Signed-off-by: default avatarDan White <dan.white@valpo.edu>
parent 2196efc9
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment