Don't ask to ask, just ask | |
PerlMonks |
Re^4: Uncompress streaming gzip on the fly in LWP::UserAgent/WWW::Mechanizeby Your Mother (Archbishop) |
on Dec 19, 2018 at 16:41 UTC ( [id://1227471]=note: print w/replies, xml ) | Need Help?? |
Thanks again for thinking about it at all, out loud or otherwise. :P The 32kB is just something I saw somewhere about gzip streams. I don't remember where, I probably shouldn't have mentioned it. If I do this (assume proper var scoping)–
–it will display something like–
Amended to–
We get (it's ignoring the Accept and returning XML)–
And then dies after awhile, it's inconsistent where but never sooner than 5kB in, with an "unexpected end" style message. Adding this lets it run for—maybe, I didn't let it run that long—forever, but it's still stacking up an ever growing scalar and gunzipping the same data over and over–
I expect I will have to come up with seek/tell/truncate kind of solution to keep the data from growing forever that uses the MultiStream to reset itself automatically. Haven't had time to go back to it. I feel like this must be a solved problem and I'm just looking in the wrong place. :|
In Section
Seekers of Perl Wisdom
|
|