driplineorg / dripline-cpp

C++ Implementation of the Dripline framework
http://driplineorg.github.io
Apache License 2.0
1 stars 0 forks source link

Deal with consequences of failed connections or failed sends #47

Open nsoblath opened 4 years ago

nsoblath commented 4 years ago

Several classes send messages:

Currently they all handle failures while attempting to send messages. But what are the consequences of such a failure? Should the service quit?

Another suggestion: if a connection problem occurs, start a thread that checks tries to connect to the broker or checks the service's connection, and kills the service if it can't find the broker.