> On Wed, Feb 13, 2019 at 3:52 PM Dmitry Dolgov <9erthali...@gmail.com> wrote: > > > On Wed, Feb 13, 2019 at 3:46 PM Konstantin Knizhnik > > <k.knizh...@postgrespro.ru> wrote: > > > > Moreover, please notice that your implementation is still passing functions > > tx/rx functions to stream constructor and so zpq_read is still able to read > > data itself. So I do not understand which problem you have solved by > > replacing zpq_read with pair of zpq_read_drain+zpq_read. > > Nope, I've removed the call of these functions from zlib_read/write, just > forgot to remove the initialization part.
Oh, I see the source of confusion. Due to lack of time I've implemented my changes only for zlib part, sorry that I didn't mention that before.