Commit cae64343 authored by Luca Boccassi's avatar Luca Boccassi

Problem: HEARTBEAT command breaks REQ connection

Solution: ignore command messages in the REQ session to avoid
disrupting the state machine.
Commands are handled by the engine before handing off to the session.
parent cdf55661
......@@ -285,6 +285,11 @@ zmq::req_session_t::~req_session_t ()
int zmq::req_session_t::push_msg (msg_t *msg_)
{
// Ignore commands, they are processed by the engine and should not
// affect the state machine.
if (unlikely (msg_->flags () & msg_t::command))
return 0;
switch (state) {
case bottom:
if (msg_->flags () == msg_t::more) {
......
Markdown is supported
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