diff options
author | Chris Kuethe <ckuethe@cvs.openbsd.org> | 2008-03-04 19:18:38 +0000 |
---|---|---|
committer | Chris Kuethe <ckuethe@cvs.openbsd.org> | 2008-03-04 19:18:38 +0000 |
commit | e4f659541709ebdcc9231f547a36b4600f51ea17 (patch) | |
tree | f2a1460bf5ff2fbac65739a7da3704d16ee729cf /usr.sbin | |
parent | 69fc466b610e8786e71a731586d5e0f2c6d22219 (diff) |
Since the back-off goes 5,10,20,40 seconds, allow the retry timeout to
increase to 80 and then 160sec before failing. Helps when doing big
updates with "pkg_add -ui"
ok espie, deraadt
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PackageRepository.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm index 227dbd9e84a..ef6501f697e 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageRepository.pm,v 1.50 2008/02/06 20:22:19 bernd Exp $ +# $OpenBSD: PackageRepository.pm,v 1.51 2008/03/04 19:18:37 ckuethe Exp $ # # Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org> # @@ -492,7 +492,7 @@ sub try_until_success { my ($self, $pkgname, $code) = @_; - for (my $retry = 5; $retry < 60; $retry *= 2) { + for (my $retry = 5; $retry <= 160; $retry *= 2) { undef $self->{lasterror}; my $o = &$code; if (defined $o) { |