From 1619b3d84a04fe1886347fd83280a6070c9603f4 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sun, 20 Mar 2011 20:52:54 +0100 Subject: Message atomicity bug in load-balancer fixed If the peer getting the message have disconnected in the middle of multiplart message, the remaining part of the message went to a different peer. This patch fixes the issue. Signed-off-by: Martin Sustrik --- src/lb.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lb.hpp') diff --git a/src/lb.hpp b/src/lb.hpp index e8d9bed..0dc11e2 100644 --- a/src/lb.hpp +++ b/src/lb.hpp @@ -61,6 +61,9 @@ namespace zmq // True if last we are in the middle of a multipart message. bool more; + // True if we are dropping current message. + bool dropping; + // Object to send events to. class own_t *sink; -- cgit v1.2.3