• Doron Somech's avatar
    problem: ZMQ_HEARTBEAT is not useful without sending an hello message · 93da6763
    Doron Somech authored
    When using ZMQ_HEARTBEAT one still needs to implement application-level heartbeat in order to know when to send a hello message.
    For example, with the majordomo protocol, the worker needs to send a READY message when connecting to a broker. If the connection to the broker drops, and the heartbeat recognizes it the worker won't know about it and won't send the READY msg.
    To solve that, the majordomo worker still has to implement heartbeat. With this new option, whenever the connection drops and reconnects the hello message will be sent, greatly simplify the majordomo protocol, as now READY and HEARTBEAT can be handled by zeromq.
    93da6763
client.cpp 3.16 KB