Skip to content

Instantly share code, notes, and snippets.

@sustrik
Created July 18, 2011 13:57
Show Gist options
  • Select an option

  • Save sustrik/1089590 to your computer and use it in GitHub Desktop.

Select an option

Save sustrik/1089590 to your computer and use it in GitHub Desktop.
--- a/src/router.cpp
+++ b/src/router.cpp
@@ -123,7 +123,7 @@ int zmq::router_t::xsend (msg_t *msg_, int flags_)
// If we have malformed message (prefix with no subsequent message)
// then just silently ignore it.
// TODO: The connections should be killed instead.
- if (msg_->flags () & msg_t::label) {
+ if (msg_->flags () & msg_t::more) {
more_out = true;
@@ -224,7 +224,7 @@ int zmq::router_t::xrecv (msg_t *msg_, int flags_)
errno_assert (rc == 0);
memcpy (msg_->data (), inpipes [current_in].identity.data (),
msg_->size ());
- msg_->set_flags (msg_t::label);
+ msg_->set_flags (msg_t::more);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment