[pacman-dev] [PATCH 1/1] RFC: handle soft failure in downloads

Christian Hesse list at eworm.de
Fri May 21 06:52:57 UTC 2021


Christian Hesse <list at eworm.de> on Thu, 2021/05/20 23:05:
> From: Christian Hesse <mail at eworm.de>
> 
> A server can indicate a soft failure by returning 412 (Precondition
> Failed). Only a warning (instead of error) message is logged and
> download is retried with next server, without counting server error.
> 
> This http code can be used by servers that are not expected to be
> complete, for example when serving a local cache.

I am open to changes, only important is that server error count does not
increase. So how about...

* http code: We need something >= 400 for the code to behave correctly.
  Nothing fits perfectly... Do you think anything else matches better? Or
  should we use a proprietary code 9xx?
* log message: Is wording and severity ok?
* Where to document the behavior?
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Best regards             my address:    */=0;b=c[a++];)
putchar(b-1/(/*    Chris            cc -ox -xc - && ./x    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/pacman-dev/attachments/20210521/074a1f25/attachment.sig>


More information about the pacman-dev mailing list