Reading a chunked gzipped stream

Marc Mims marc at questright.com
Thu Oct 25 18:43:40 CEST 2012


AnyEvent::Twitter::Stream reads a chunked Twitter API stream. Twitter
recommends requesting a gzipped content for high volume streams.

I'm having difficulty implementing that. I'm wondering if this is a solved
problem it perl and I just haven't found the correct CPAN module, yet.

I've experimented a bit with IO::Uncompress::Gunzip, but haven't found an
easy way to feed it chunks and extract decompressed lines without the input
buffer growing indefinitely.

Thanks in advance for any guidance you can offer.

-Marc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/anyevent/attachments/20121025/753faefa/attachment.html>


More information about the anyevent mailing list