in reply to LWP Module - timing out

From the LWP::UserAgent documentation:
$ua->timeout([$secs]) Get/set the timeout value in seconds. The default timeout() value is 180 seconds, i.e. 3 minutes.