sociomantic-tsunami / dmqproto

Distributed Message Queue protocol definition, client, fake node, and tests
Boost Software License 1.0
2 stars 20 forks source link

Poor error message for Connection Refused #88

Open andrew-stevenson-sociomantic opened 5 years ago

andrew-stevenson-sociomantic commented 5 years ago

If a DMQ node is down the error available in the ConnNotification object passed to the connection notifier callback is ConnectProtocol: finalized. I would have hoped for something along the lines of Connection refused to enable debugging of the problem. I'm not sure finalized will mean much to most users.

andrew-stevenson-sociomantic commented 5 years ago

It turns out ConnectProtocol: finalized is also the message given for a TCP level time out. The same message for different errors makes troubleshooting even more awkward.