[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:28:06 -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):

 That 303 seems wrong.    To be honest, i'm not even sure a partial request
 will go "through" an HTTP 3xx redirect... however at minimum the 303 vs
 302 might be breaking it as 303 is supposed to be reserved for POST
 requests.  I've asked in the rocket forum about it...
 https://github.com/SergioBenitez/Rocket/discussions/2417

 {{{
 curl -r 0-99 https://eu.hpkg.haiku-os.org/haiku/master/x86_64/current/repo
 -v
 }}}

 redirect via HTTP 303... no partial.

 vs

 {{{
 curl -r 0-99 https://s3.wasabisys.com/haiku-repositories-
 us/master/x86_64/r1~beta4_hrev56627/repo -v
 }}}

 partial success

 vs

 {{{
 curl -r 0-99 https://eu.hpkg.haiku-
 os.org/haikuports/master/x86_64/current/repo -v
 }}}

 partial success


 Keep in mind this was all in place long before we added resuming package
 downloads in the package kit.
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/18106#comment:4>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: