I have a small proxy script that occasionally runs into a server-push stream that doesn't end. I'd like to be able to do something like:
$response = $useragent->simple_request($request, \&callback, 2048);
... time passes ...
$useragent->killstream;
Except that I haven't been able to find any reference anywhere in the docs, searching on perlmonks, or even the lwp mailing list, that such a function or method exists.
I have tried setting the useragent to undef, but the stream continues to flow in. Unless I explicitly kill the script altogether, nothing seems to work.
Fellow monks, has anyone a solution for my woes?
ryddler