Schiza, Apostolia (ISS Atlanta) <[EMAIL PROTECTED]> wrote:

> Ok, this is weird or I obviously misunderstood the usage of
> LWP timeout... I just tested it and I had set the timeout for
> 10mins and the request kept running just fine all that time...
> Though, if you do print $ua->timeout('600'), you get a value
> of 180 seconds, which is hte predefined timeout value instead
> of 600 seconds.

It's not that weird, though it doesn't seem to be explicitly 
documented.  Get/set functions conventionally return the old 
value when used to set a property.  So the value was 180.  
Doing $ua->timeout(600) sets it to 600 and returns 180 (the 
same value it would return if you used timeout() as a get 
function by not passing an argument).  Try printing 
$ua->timeout() after you've done $ua->timeout(600).

-- 
Keith C. Ivey <[EMAIL PROTECTED]>
Washington, DC
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to