Commit f61921d0 authored by Martin Sustrik's avatar Martin Sustrik

REQ socket can die when reply is delivered on wrong unerlying connection -- fixed

parent 9129b792
......@@ -111,10 +111,8 @@ void zmq::req_t::xkill (class reader_t *pipe_)
void zmq::req_t::xrevive (class reader_t *pipe_)
{
// TODO: Actually, misbehaving peer can cause this kind of thing.
// Handle it decently, presumably kill the offending connection.
zmq_assert (pipe_ == reply_pipe);
reply_pipe_active = true;
if (pipe_ == reply_pipe)
reply_pipe_active = true;
}
void zmq::req_t::xrevive (class writer_t *pipe_)
......
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