Before this patch, the stream engine terminated itself
whenever it had detected an IO error. If this happened
when sending a message, the engine lost all
in-flight messages, messages waiting to be decoded,
and the last decoded message that had not been accepted,
if there was one.

The new behaviour is to terminate the engine only after
the input error has been detected and the last decoded
This commit is contained in:
Martin Hurton
2012-04-29 17:13:18 +02:00
parent 16ec2868c5
commit 776563fcff
4 changed files with 45 additions and 11 deletions

View File

@@ -83,6 +83,7 @@ namespace zmq
unsigned char *inpos;
size_t insize;
decoder_t decoder;
bool input_error;
unsigned char *outpos;
size_t outsize;