in reply to Killing a server-push stream in LWP?
$SIG{ALRM} = sub { die "timed out" }; eval { alarm(60); # give it 60 seconds $response = $useragent->simple_request($request,\&callback,2048); alarm(0); }; # now look for "timed out" in $@ if ($@ =~ /timed out/) { # do something }
i thought you might be able to use something like:
but the whole having to deal with Win2k is a right bummer. Sorry i couldn't help more :(undef $useragent if $@ =~ /timed out/;
jeffa
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: (jeffa) Re: Killing a server-push stream in LWP?
by ryddler (Monk) on Oct 16, 2001 at 20:16 UTC |