in reply to Re: Hard timeout for LWP::UserAgent or similar
in thread Hard timeout for LWP::UserAgent or similar
$ua->timeout( $secs )
Get/set the timeout value in seconds. The default timeout() value is 180 seconds, i.e. 3 minutes.
The requests is aborted if no activity on the connection to the server is observed for timeout seconds. This means that the time it takes for the complete transaction and the request() method to actually return might be longer.
So a trickling stream of data coming in could mean the timeout never getting triggered, or getting triggered way later than timeout.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Hard timeout for LWP::UserAgent or similar
by BrowserUk (Patriarch) on Mar 31, 2011 at 01:45 UTC |