mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-24 03:06:40 +01:00
offload: Increase initial SSH connection timeout.
Fixes <https://issues.guix.gnu.org/61646>. * guix/scripts/offload.scm (open-ssh-session): Increase connection timeout from 10 s to 30 s. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
b12ee1ee5b
commit
53d718f61b
1 changed files with 6 additions and 1 deletions
|
@ -220,7 +220,12 @@ (define* (open-ssh-session machine #:optional max-silent-time)
|
||||||
(session (make-session #:user (build-machine-user machine)
|
(session (make-session #:user (build-machine-user machine)
|
||||||
#:host (build-machine-name machine)
|
#:host (build-machine-name machine)
|
||||||
#:port (build-machine-port machine)
|
#:port (build-machine-port machine)
|
||||||
#:timeout 10 ;initial timeout (seconds)
|
;; Multiple derivations may be offloaded in
|
||||||
|
;; parallel, and when there is a large amount
|
||||||
|
;; of data to be sent, it can choke lower
|
||||||
|
;; bandwidth connections and cause timeouts, so
|
||||||
|
;; set it to a large enough value.
|
||||||
|
#:timeout 30 ;initial timeout (seconds)
|
||||||
;; #:log-verbosity 'protocol
|
;; #:log-verbosity 'protocol
|
||||||
#:identity (build-machine-private-key machine)
|
#:identity (build-machine-private-key machine)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue