increase LWP timeout, some reports can take a while
authorivan <ivan>
Mon, 9 Feb 2009 10:38:08 +0000 (10:38 +0000)
committerivan <ivan>
Mon, 9 Feb 2009 10:38:08 +0000 (10:38 +0000)
FS/bin/freeside-fetch

index 3fe1a00..7b674ed 100755 (executable)
@@ -35,6 +35,7 @@ foreach my $employee (@employees) {
   };
 
   my $ua = new LWP::UserAgent;
+  $ua->timeout(1800); #30m, some reports can take a while
   $ua->agent("FreesideFetcher/0.1 " . $ua->agent);
 
   my $req = new HTTP::Request GET => $url;