setting the UserAgent timeout...

Todd Strichuk (todd@mda.ca)
Wed, 1 Jul 1998 16:57:37 -0700


does anyone know how to properly set the user agent timeout?  i've
tried the obvious...

  $agent = new LWP::UserAgent;
  $agent->timeout(10);
  $request = new HTTP::Request( 'POST', $url->base . $url->epath );
  $request->content_type('application/x-www-form-urlencoded');
  $request->content($url->equery);
  $response = $agent->request($request);

but when i put some print statements before and after the
$agent->request() call i find that it can still take up to 7 minutes
before i get a response if the server i'm trying to connect to is
down.  besides the timeout() call, the above code actually works and
will give me some results eventually.  the only problem is that i
can't afford to wait very long for the results and would like to cut
it short.  can anyone offer some advice?

thanks.

-- 
todd

 Have you seen Quasimoto lately? I have a hunch he's back!