Skip to content

Commit

Permalink
Allow redirects in MirrorFileCheck task
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-suse committed Jan 31, 2024
1 parent ed41764 commit 0882227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MirrorCache/Task/MirrorFileCheck.pm
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ sub _check {
$urldir = '/' unless $urldir;
my $url = $m->hostname . $m->urldir . $path;
# it looks that defining $ua outside the loop greatly increases overal memory usage footprint for the task
my $ua = Mojo::UserAgent->new->request_timeout(4)->connect_timeout(4);
my $ua = Mojo::UserAgent->new->request_timeout(4)->connect_timeout(4)->max_redirects(6);

my ($next, $then, $catch);
my $started = time();
Expand Down

0 comments on commit 0882227

Please sign in to comment.