[protobuf] Re: Gzip streams fail to decode but doesn't error

2014-11-05 Thread Antoine Bouthors
l those then I detect that there is an error from Zlib. But because I was relying on the stream destructor to flush, I was not getting any error. On Tuesday, November 4, 2014 7:16:33 PM UTC+13, Antoine Bouthors wrote: > > Hi, > > I am trying to serialize messages to and from array

[protobuf] Gzip streams fail to decode but doesn't error

2014-11-04 Thread Antoine Bouthors
Hi, I am trying to serialize messages to and from arrays using zlib compression. Attached is a trivial example of what I'm trying to do. The code asserts at line 64: the messages read from the buffer is empty. My problem is: there is no indication whatsoever from protobuf that something went w