gnu-maintenance: Add a timeout on FTP connection establishment.
authorLudovic Courtès <ludo@gnu.org>
Wed, 17 Mar 2021 10:43:07 +0000 (11:43 +0100)
committerLudovic Courtès <ludo@gnu.org>
Wed, 17 Mar 2021 11:03:25 +0000 (12:03 +0100)
* guix/gnu-maintenance.scm (latest-ftp-release): Pass #:timeout to
'ftp-open'.

guix/gnu-maintenance.scm

index 31cc948..4ba2a5f 100644 (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))