gnu-maintenance: Add a timeout on FTP connection establishment.

* guix/gnu-maintenance.scm (latest-ftp-release): Pass #:timeout to
'ftp-open'.
This commit is contained in:
Ludovic Courtès 2021-03-17 11:43:07 +01:00
parent 29330b57e2
commit 728c90862e
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -345,7 +345,7 @@ return the corresponding signature URL, or #f it signatures are unavailable."
;; Return #t for patch directory names such as 'bash-4.2-patches'.
(cut string-suffix? "patches" <>))
(define conn (ftp-open server))
(define conn (ftp-open server #:timeout 5))
(define (file->url directory file)
(string-append "ftp://" server directory "/" file))