Merge pull request #300 from hurtonm/router_send_fixes

router: always respect message boundaries
This commit is contained in:
Ian Barber
2012-04-02 13:23:52 -07:00

View File

@@ -152,11 +152,9 @@ int zmq::router_t::xsend (msg_t *msg_, int flags_)
current_out = it->second.pipe; current_out = it->second.pipe;
if (!current_out->check_write ()) { if (!current_out->check_write ()) {
it->second.active = false; it->second.active = false;
more_out = false;
current_out = NULL; current_out = NULL;
} }
} else if(fail_unroutable) { } else if(fail_unroutable) {
more_out = false;
errno = EHOSTUNREACH; errno = EHOSTUNREACH;
retval = -1; retval = -1;
} }