mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
substitute: Download nar from another server upon ETIMEDOUT.
Previously, 'guix substitute' would fail abruptly with something like: guix substitute: warning: while fetching https://ci.guix.gnu.org/nar/lzip/…-example: server is somewhat slow guix substitute: warning: try `--no-substitutes' if the problem persists guix substitute: error: connect*: Connection timed out substitution of /gnu/store/…-example failed * guix/scripts/substitute.scm (network-error?): Add ETIMEDOUT.
This commit is contained in:
parent
2886a59d18
commit
e95e65541a
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ (define network-error?
|
|||
(or (and (system-error? exception)
|
||||
(let ((errno (system-error-errno
|
||||
(cons 'system-error (exception-args exception)))))
|
||||
(memv errno (list ECONNRESET ECONNABORTED
|
||||
(memv errno (list ECONNRESET ECONNABORTED ETIMEDOUT
|
||||
ECONNREFUSED EHOSTUNREACH
|
||||
ENOENT)))) ;for "file://"
|
||||
(and (kind-and-args? exception)
|
||||
|
|
Loading…
Reference in a new issue