From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6NOzDZ5XR2AdQQAA0tVLHw (envelope-from ) for ; Tue, 09 Mar 2021 11:10:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iEB+CZ5XR2DvdwAAB5/wlQ (envelope-from ) for ; Tue, 09 Mar 2021 11:10:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6FC391EE02 for ; Tue, 9 Mar 2021 12:10:21 +0100 (CET) Received: from localhost ([::1]:43802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJaFn-0006ZI-93 for larch@yhetil.org; Tue, 09 Mar 2021 06:10:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJaDa-0003Y3-ND for bug-guix@gnu.org; Tue, 09 Mar 2021 06:08:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34200) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJaDa-00027s-Eo for bug-guix@gnu.org; Tue, 09 Mar 2021 06:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJaDa-00058w-AG for bug-guix@gnu.org; Tue, 09 Mar 2021 06:08:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46967: Connection reuse for substitutes breaks with gzip Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 09 Mar 2021 11:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46967 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 46967@debbugs.gnu.org Received: via spool by 46967-submit@debbugs.gnu.org id=B46967.161528804319724 (code B ref 46967); Tue, 09 Mar 2021 11:08:02 +0000 Received: (at 46967) by debbugs.gnu.org; 9 Mar 2021 11:07:23 +0000 Received: from localhost ([127.0.0.1]:45746 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJaCx-000584-FX for submit@debbugs.gnu.org; Tue, 09 Mar 2021 06:07:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJaCv-00057p-MM for 46967@debbugs.gnu.org; Tue, 09 Mar 2021 06:07:21 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34920) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJaCq-0001kO-Ht for 46967@debbugs.gnu.org; Tue, 09 Mar 2021 06:07:16 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45456 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lJaCn-0007LQ-QY for 46967@debbugs.gnu.org; Tue, 09 Mar 2021 06:07:14 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <878s70ibke.fsf@inria.fr> Date: Tue, 09 Mar 2021 12:07:11 +0100 In-Reply-To: <878s70ibke.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sat, 06 Mar 2021 15:47:13 +0100") Message-ID: <8735x4a8m8.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615288221; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=Jn4XM13S2/y8utMUJjJG1UWdFYtyQ2ug19IU0tKBh1Q=; b=acl6A+ieyDu+FKCpjgcJbmXj7H1qBMcmpc0MvAVgpffl4uLSSsnIz0Pn3ZWQfqqmeEFr5n HBP9WXDxychMTD8Uhm/eeKyqpOlBLUmbaO6IdZkDBFFM5Pos/r8zlYOcwP0/ljPn3zAewU 4QIxyYVzoe0qQ+GIaIDmAFaaglTLqzS/sQnPoMAuDJ4TPJlTalWdw30CiK1qmOdKRC5jJb Vq0Bcdk4NdZi8v0gYD3VTEK0CWXtvrvgZwW1VNSRew5mgUnLOQUoEgu4ikUVbY1SF6YSQT RqMb8J0ETVW3F2d2gyvSJKG97BXTzH+I19QE3yYwBJbAD28bzX1lOIJQA/I9aA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615288221; a=rsa-sha256; cv=none; b=IVCYL8wdeEnA7ziMxD92ekZnDSmGuNzBLWl0QuQgvyMmlOrhLF/FX07EyEEJMbpbZCYm+K C3h5nJtt8B0kxhg5cGMaPcTwGByfNtNj3hR0N8BPP5ElZdMg6gvKiWNnL9NmbySqC7lUJL uxWMB/uZY9r//aT6ZZb24UWyDvVyH0kyJbvpG3WKxChHFxBEBxIVUxn0jsVUV+UFyJIqUV vwWba3Wf/sKT4Z+3PCHh+td9mMuVSMvGzZ5H5G2Q1gs4qO/mkyIny17wvQKSBTL3ibDe/M UBs9LwaopPWXLHbDW2baY2KQjom69UA8Wzh/zojKi3PGgv91h4Izm5AGJ61ZmQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.88 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 6FC391EE02 X-Spam-Score: -1.88 X-Migadu-Scanner: scn1.migadu.com X-TUID: EpuCT90GzutU --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s skribis: > As of commit cdc688c5ee106b7ee2547e4abd74ab81d7702d3d, it seems that the > connection reuse code for substitutes breaks if you=E2=80=99re fetching g= zip > substitutes. Here=E2=80=99s a simple reproducer that systematically fails after the first download: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guile ~/src/guix-debugging/http-pipelining-gzip.scm ;;; (fetch 164664960) Backtrace: In ice-9/boot-9.scm: 1736:10 11 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In unknown file: 10 (apply-smob/0 #) In ice-9/boot-9.scm: 718:2 9 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 8 (_ #(#(#))) In ice-9/boot-9.scm: 2806:4 7 (save-module-excursion _) 4351:12 6 (_) In /home/ludo/src/guix-debugging/http-pipelining-gzip.scm: 18:4 5 (_) In guix/http-client.scm: 116:21 4 (http-fetch _ #:port _ #:text? _ #:buffered? _ #:open-connecti= on _ #:keep-alive? _ # _ #:headers _ # _) In web/client.scm: 526:24 3 (http-request _ #:body _ #:verify-certificate? _ #:port _ #:me= thod _ #:version _ #:keep-alive? _ # _ # =E2=80=A6) In web/response.scm: 198:31 2 (read-response #) In web/http.scm: 1194:12 1 (read-response-line _) 252:2 0 (parse-http-version _ _ _) web/http.scm:252:2: In procedure parse-http-version: Bad http-version header component: =1F=00=00=03=C3=AC=C2=BD --8<---------------cut here---------------end--------------->8--- Ludo=E2=80=99. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=http-pipelining-gzip.scm Content-Description: the reproducer (use-modules (guix http-client) ((guix build download) #:select (open-connection-for-uri)) (guix utils) ((guix serialization) #:select (dump-port*)) (web uri) (web request) (web response) (srfi srfi-1)) (define %base-url "https://ci.guix.gnu.org") (define port (open-connection-for-uri (string->uri %base-url))) (let loop () (define-values (input size) (http-fetch (string->uri "https://ci.guix.gnu.org/nar/gzip/0fcjk788gj7k6gsf3zsx8j8lyw6w896b-inkscape-1.0.2") #:port port #:text? #f #:open-connection open-connection-for-uri ;/cached #:keep-alive? #t #:buffered? #f)) (define-values (decompressed pids) (decompressed-port 'gzip input)) (setvbuf decompressed 'none) (call-with-output-file "/tmp/out" (lambda (output) (setvbuf output 'none) (dump-port* decompressed output (pk 'fetch 164664960)))) ;size of compressed nar (unless (every (compose zero? cdr waitpid) pids) (error "decomp error")) (loop)) --=-=-=--