diff options
| author | Rutherther <rutherther@ditigal.xyz> | 2025-12-29 11:54:21 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-14 09:16:50 +0100 |
| commit | 84a018b3569a26fbb99d0c71fdbd2addb5686467 (patch) | |
| tree | 0223bc493446ee335c5fd907f3bfb84c15caf13e /gnu/services | |
| parent | 0ac92150b1e4de3486b453fc10debc082a1a5f1f (diff) | |
installer: network: Check response code to assess substitute availability.
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 9ea2174ba8f05445227c952e0faa17d9f65ddb8f.
Change-Id: I52ae8a49407009dd76ad5da3925355770bc25d0c
Change-Id: I99a77cb7332198bae84f28a00a6cc0409d5bf3b9
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Merges: #5217
Diffstat (limited to 'gnu/services')
0 files changed, 0 insertions, 0 deletions
