[haiku-bugs] Re: [Haiku] #18106: Pkgman: partial packages are not picked up on connection drops.

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 06 Dec 2022 23:14:36 -0000

#18106: Pkgman: partial packages are not picked up on connection drops.
-------------------------------+-------------------------
  Reporter:  khallebal         |      Owner:  nobody
      Type:  bug               |     Status:  new
  Priority:  normal            |  Milestone:  Unscheduled
 Component:  Kits/Package Kit  |    Version:  R1/beta4
Resolution:                    |   Keywords:
Blocked By:                    |   Blocking:
  Platform:  All               |
-------------------------------+-------------------------
Comment (by kallisti5):

 For others on this ticket, all downloads for the haiku repository are done
 via HTTP 302 redirect to s3 buckets.  haikuports is directly hosted on our
 infrastructure.

 example:
 {{{
 $ curl https://eu.hpkg.haiku-os.org/haiku/master/x86_64/current/repo -v
 2>&1 | grep -E "location|30"
 { [130 bytes data]
 < HTTP/2 303
 < location: https://s3.wasabisys.com/haiku-repositories-
 us/master/x86_64/r1~beta4_hrev56627/repo
 }}}

 Actually, i'm not 100% sure we're doing an HTTP/2 303.  Maybe related to a
 recent upgrade of rocket / hpkgbouncer.

 https://github.com/haiku/hpkgbouncer/blob/master/src/main.rs#L105 is the
 code doing the redirect.

 Anyway, in theory the redirect shouldn't prevent the package kit from
 doing partials, and wasabi s3 supports partials as far as I know.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/18106#comment:3>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: