mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 12:05:19 -06:00
This is to accomodate following situation:
- The proxy is up
- The substitute server is down
When that happens, 5xx is returned from the proxy, typically either Bad
Gateway or Gateway Timeout. This implies the substitute server is down.
Still, for checking if the user is online, we do not check the response code.
If there is a response, even 4xx, 5xx, it still means the user is online.
* gnu/installer/newt/network.scm
(url-alive?): Add optional argument to to check the response code.
(common-urls-alive?): Add the same argument, passing it to url-alive?
(check-substitute-availability): Assume offline when non-successful http code
returned.
Follow up of
|
||
|---|---|---|
| .. | ||
| aux-files | ||
| newt | ||
| connman.scm | ||
| dump.scm | ||
| final.scm | ||
| hardware.scm | ||
| hostname.scm | ||
| kernel.scm | ||
| keymap.scm | ||
| locale.scm | ||
| newt.scm | ||
| parted.scm | ||
| proxy.scm | ||
| record.scm | ||
| services.scm | ||
| steps.scm | ||
| substitutes.scm | ||
| tests.scm | ||
| timezone.scm | ||
| user.scm | ||
| utils.scm | ||