Merge pull request #296 from hurtonm/fix_router_send

Fix return value of send for router socket
This commit is contained in:
Ian Barber 2012-03-28 03:50:02 -07:00
commit 8da7271042

View File

@ -164,7 +164,8 @@ int zmq::router_t::xsend (msg_t *msg_, int flags_)
errno_assert (rc == 0);
} else if(fail_unroutable) {
more_out = false;
retval = EHOSTUNREACH;
errno = EHOSTUNREACH;
retval = -1;
}
}