From 39f8f5c8aac149d88c0daec94d035ad68b6ffca7 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sun, 30 May 2021 20:42:25 +0100 Subject: Don't pretend that chunked inputs have been read If the connection closes before all the data's been received. Most of a nar file isn't useful. --- guix-build-coordinator/utils.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guix-build-coordinator/utils.scm b/guix-build-coordinator/utils.scm index 72f33c3..45302c8 100644 --- a/guix-build-coordinator/utils.scm +++ b/guix-build-coordinator/utils.scm @@ -180,7 +180,7 @@ upcoming chunk." (match (read-line port) ((? eof-object?) ;; Connection closed prematurely: there's nothing left to read. - 0) + (error "chunked input ended prematurely")) (str (let ((extension-start (string-index str (lambda (c) -- cgit v1.2.3