From f031677100b41347e09932fc973040097a2187e4 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sat, 20 Mar 2010 15:04:30 +0100 Subject: rollback of half-processed messages in case of disconnection --- src/session.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/session.hpp') diff --git a/src/session.hpp b/src/session.hpp index 25a0d12..9bda1ad 100644 --- a/src/session.hpp +++ b/src/session.hpp @@ -72,6 +72,10 @@ namespace zmq // Inbound pipe, i.e. one the session is getting messages from. class reader_t *in_pipe; + // This flag is true if the remainder of the message being processed + // is still in the in pipe. + bool incomplete_in; + // If true, in_pipe is active. Otherwise there are no messages to get. bool active; -- cgit v1.2.3