summaryrefslogtreecommitdiff
path: root/src/lb.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-03-20 20:52:54 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-03-20 20:52:54 +0100
commit1619b3d84a04fe1886347fd83280a6070c9603f4 (patch)
tree817536a0e500227dcf1463f68d88375cd75dd9ec /src/lb.hpp
parent92c7c18367f91c6341fc617026f5e25000466b05 (diff)
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 <sustrik@250bpm.com>
Diffstat (limited to 'src/lb.hpp')
-rw-r--r--src/lb.hpp3
1 files changed, 3 insertions, 0 deletions
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;