mirror of
https://github.com/zeromq/libzmq.git
synced 2025-09-20 12:59:33 +02:00
Problem: ZMQ_DISH triggers assert when hitting the watermark(?)
Solves issue #2907 by checking whether the msg already has a group
This commit is contained in:
parent
390d79e0ab
commit
542fe67f25
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user