in reply to Re^3: uncompress gzip data in a callback
in thread uncompress gzip data in a callback

That sounds like you aren't maintaining the context of the compressed data stream between invocations of inflate. The code I posted earlier today shows how to handle that.
  • Comment on Re^4: uncompress gzip data in a callback