From 600488fa9c84523314e6084c7a8c3657467e0599 Mon Sep 17 00:00:00 2001 From: Martin Hurton Date: Mon, 2 Apr 2012 20:10:04 +0200 Subject: [PATCH] router: always respect message boundaries The current implementaion of router socket does not handle the full pipe and unroutable messages properly. Namely, in those cases, the socket could route some message parts into a wrong connection. --- src/router.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/router.cpp b/src/router.cpp index e1335289..2b236de2 100644 --- a/src/router.cpp +++ b/src/router.cpp @@ -154,11 +154,9 @@ int zmq::router_t::xsend (msg_t *msg_, int flags_) current_out = it->second.pipe; if (!current_out->check_write ()) { it->second.active = false; - more_out = false; current_out = NULL; } } else if(fail_unroutable) { - more_out = false; errno = EHOSTUNREACH; retval = -1; }