Commit 4f7dc496 authored by Pieter Hintjens's avatar Pieter Hintjens

Merge pull request #1643 from somdoron/master

Problem: when STREAM socket HWM is reached an assert will happen as metadata is trying to set twice
parents afc7c5c7 21057220
......@@ -869,7 +869,7 @@ int zmq::stream_engine_t::push_msg_to_session (msg_t *msg_)
}
int zmq::stream_engine_t::push_raw_msg_to_session (msg_t *msg_) {
if (metadata)
if (metadata && metadata != msg_->metadata())
msg_->set_metadata(metadata);
return push_msg_to_session(msg_);
}
......
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