Unverified Commit a45e4bb7 authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #2909 from eponsko/master

Problem:  ZMQ_DISH triggers assert when hitting the watermark(?)
parents 390d79e0 542fe67f
......@@ -285,14 +285,19 @@ int zmq::dish_session_t::push_msg (msg_t *msg_)
return 0;
}
else {
const char *group_setting = msg_->group();
int rc;
if(group_setting[0] != 0)
goto has_group;
// Set the message group
int rc = msg_->set_group ((char*)group_msg.data (), group_msg. size());
rc = msg_->set_group ((char*)group_msg.data (), group_msg. size());
errno_assert (rc == 0);
// We set the group, so we don't need the group_msg anymore
rc = group_msg.close ();
errno_assert (rc == 0);
has_group:
// Thread safe socket doesn't support multipart messages
if ((msg_->flags() & msg_t::more) == msg_t::more) {
errno = EFAULT;
......
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