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 YIgyK7N0R2DMVQAA0tVLHw (envelope-from ) for ; Tue, 09 Mar 2021 13:14:27 +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 p5X6JrN0R2CvVAAAB5/wlQ (envelope-from ) for ; Tue, 09 Mar 2021 13:14:27 +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 0AB9E2083B for ; Tue, 9 Mar 2021 14:14:27 +0100 (CET) Received: from localhost ([::1]:38000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJcBt-0007ea-SZ for larch@yhetil.org; Tue, 09 Mar 2021 08:14:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJcBW-0007dL-Jt for bug-guix@gnu.org; Tue, 09 Mar 2021 08:14:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34387) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJcBW-0005VY-4i for bug-guix@gnu.org; Tue, 09 Mar 2021 08:14:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJcBV-00044u-Uo for bug-guix@gnu.org; Tue, 09 Mar 2021 08:14:01 -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 13:14:01 +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.161529560315625 (code B ref 46967); Tue, 09 Mar 2021 13:14:01 +0000 Received: (at 46967) by debbugs.gnu.org; 9 Mar 2021 13:13:23 +0000 Received: from localhost ([127.0.0.1]:45933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJcAt-00043x-Gl for submit@debbugs.gnu.org; Tue, 09 Mar 2021 08:13:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52968) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJcAs-00043l-2Z for 46967@debbugs.gnu.org; Tue, 09 Mar 2021 08:13:22 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36801) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJcAm-0005H9-QX for 46967@debbugs.gnu.org; Tue, 09 Mar 2021 08:13:16 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45838 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lJcAg-0000mm-6r for 46967@debbugs.gnu.org; Tue, 09 Mar 2021 08:13:11 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <878s70ibke.fsf@inria.fr> <8735x4a8m8.fsf@gnu.org> Date: Tue, 09 Mar 2021 14:13:08 +0100 In-Reply-To: <8735x4a8m8.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 09 Mar 2021 12:07:11 +0100") Message-ID: <87r1ko8o7v.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=1615295667; 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=o+SgJ5I23nHvxu6X3I/YJLXjpX1Jlq7p7+pF/V0VwL8=; b=kOW2Q2+dGdmLfKvlZepepcy9Y9hEzsJPGeShn7cLIj0kgb8IACAZ0CA6Gs4JyAyyNFxTYA P/JgAsF6pVR+Yc9o1dD4dOp1oVcSnMwN8OdxFboIlrxaF23EWx9b1OdMwpAFHpatmHbc/M GkLqHRUb6hIvyfYF5RyHts2VeX9WuwPYbNw7y+qJYzZsLpqL1r83S8+MZY1PaJn+7PDnp4 kgZCo/FYlEkE4wvAKPut9jHwiIswIJEGS6+DkGs5UUrugfvWFHSqlgfosZfbVfQMk7bZ+c kbGYNAYAnysTavP5Tyfc6lw6o8CAVSdT+KBQByb97ingwtf5/zpZLaOgG6yyHw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615295667; a=rsa-sha256; cv=none; b=TxJ8WLRsMqazzi9InwQea8X7lqhINn+YCSMuCQ/Gf1V8JlErcQe3f9VZd8cP9dq2nlAAOy iuoGLIzT2RIBOUWLvIQkevU7Yq5BHhQFq7CPDfJeJDw51SaTOHtBC6tfKZNmje5FLv/uHZ uYpHDStRBhyCfP2RslfXZgwe4PU6s6wBsBW9Xoy4WnZthszpzJij95dVVxUTaTfKM+u18U AhedToveOTWRNxi/I80C7PHynQndXvOw5kBxhqMY9wS9vF8VFiPs4fdkABUREuUwsFQGLO kkD5TMYLO1kzipRyrKhOsg1yVG1KAb12ZiSAkT5bXPeFoy7VwU9NWgU4ETXdYg== 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: 0AB9E2083B X-Spam-Score: -1.88 X-Migadu-Scanner: scn1.migadu.com X-TUID: uwNvbfruidbW --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Even simpler: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guile ~/src/guix-debugging/http-pipelining-gzip.scm ;;; (port #) ;;; (input #) ;;; (drain "") ;;; (fetch 16397) ;;; (port #) 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: 8--- --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=http-pipelining-gzip.scm Content-Description: 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://guix.gnu.org") (define port (open-connection-for-uri (string->uri %base-url))) (let loop () (define-values (input size) (http-fetch (string->uri %base-url) #:port (pk 'port port) #:text? #f #:open-connection open-connection-for-uri ;/cached #:keep-alive? #t #:buffered? #f)) (define-values (decompressed pids) (filtered-port '("/run/current-system/profile/bin/cat") (pk 'input input))) (dump-port* decompressed (%make-void-port "w") (pk 'fetch size)) (unless (every (compose zero? cdr waitpid) pids) (error "decomp error")) (loop)) --=-=-=--