From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QFqSKHLUSWA+GQAA0tVLHw (envelope-from ) for ; Thu, 11 Mar 2021 08:27:30 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OClmJHLUSWB5ewAA1q6Kng (envelope-from ) for ; Thu, 11 Mar 2021 08:27:30 +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 aspmx2.migadu.com (Postfix) with ESMTPS id 17544D39B for ; Thu, 11 Mar 2021 09:27:30 +0100 (CET) Received: from localhost ([::1]:39100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKGfJ-0007DT-4W for larch@yhetil.org; Thu, 11 Mar 2021 03:27:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKGeu-0007C6-L3 for bug-guix@gnu.org; Thu, 11 Mar 2021 03:27:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKGes-0002es-LO for bug-guix@gnu.org; Thu, 11 Mar 2021 03:27:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKGes-0003m0-Gh for bug-guix@gnu.org; Thu, 11 Mar 2021 03:27: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: Thu, 11 Mar 2021 08:27: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.161545121214485 (code B ref 46967); Thu, 11 Mar 2021 08:27:02 +0000 Received: (at 46967) by debbugs.gnu.org; 11 Mar 2021 08:26:52 +0000 Received: from localhost ([127.0.0.1]:52549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKGei-0003lZ-1I for submit@debbugs.gnu.org; Thu, 11 Mar 2021 03:26:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKGef-0003lL-VK for 46967@debbugs.gnu.org; Thu, 11 Mar 2021 03:26:50 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57774) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKGea-0002VK-Ip for 46967@debbugs.gnu.org; Thu, 11 Mar 2021 03:26:44 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=54686 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lKGea-0007Ol-51 for 46967@debbugs.gnu.org; Thu, 11 Mar 2021 03:26:44 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <878s70ibke.fsf@inria.fr> <8735x4a8m8.fsf@gnu.org> <87r1ko8o7v.fsf@gnu.org> Date: Thu, 11 Mar 2021 09:26:42 +0100 In-Reply-To: <87r1ko8o7v.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 09 Mar 2021 14:13:08 +0100") Message-ID: <87eegmxfi5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=1615451250; 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: content-transfer-encoding:content-transfer-encoding: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=pHKa9l/uepBlnenvlcsjTSKEVTNnWQhUs07W7yZ8Uyg=; b=fcNNxABXhn+eBcLp0NgZ5ZKR1G3oFyBfhTYPv1E5u0NSn7F8cWgUiF/MDe60pqa2h+OaGq 8Mh0UHvJ/2AGtYJ22bsyvFkcnTVG5heoiWKypM/ebReIUf1Rd3KBOQ6R20J/6ITRSvv+Fx KYtuPxb1Rw1TizjWOgxhOBheDYJHpjjZqxzQHwC4NySFhzYJPczcmadV/0UMJqCTvKTNM8 dIbz6fqKvIA7DuatA1pHrFCi25nnzjs0YFhqDvdANcTacJOWSR1LMSQ7lmoSzwVhXaxSWw gYTgxyQJuV1sfU5zAAFrulHnu5wcBXPu2sMhePjCKuvIk7p7Ih2medRj4c/HDw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615451250; a=rsa-sha256; cv=none; b=BPzY9ERe5qX/JLBKqJHc/id/OsIR9TpouokegGN7xkSkvHXoNZxfSjoefBUx6lH2ZGK/6l rnikcnPV0URx3uvZZTNSkipAOX7ZAFk+x+BN268BGR52p/duQV91iDGErTmwZ3aRFDVoLi egKsIqjMXcZtt3F38Igcx0icKF6k7r9VH0eahYpTR9681dCDc26cTx5fjllnWZWX+dry1Y DDFNOAV3BXASSnuCmV2pvpzLTs8yQJapsIKXD37Q3UQxVXg0wOJ2qhJPBo/tIPiJ3o9FNG rR/wn6X8PEatjs69jHrI82jwRE0eCJP/OJcJ6JckBPtSXRmvvBj+PKamDYG9Lg== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=none; spf=pass (aspmx2.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: -2.59 Authentication-Results: aspmx2.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx2.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: 17544D39B X-Spam-Score: -2.59 X-Migadu-Scanner: scn0.migadu.com X-TUID: v3p7iEE+qZDA Turns out GnuTLS has a buffer for the record layer attached to the session. After the first GET in the main process, it looks like this: --8<---------------cut here---------------start------------->8--- (gdb) p session->internals.record_buffer $9 =3D {head =3D 0x7f7370, tail =3D 0x7f7370, length =3D 1, byte_length =3D= 16219} (gdb) p *session->internals.record_buffer->head $10 =3D {next =3D 0x0, prev =3D 0x0, mark =3D 165, msg =3D { data =3D 0x7f73c0 "HTTP/1.1 200 OK\r\nServer: nginx\r\nDate: Wed, 10 Ma= r 2021 21:23:44 GMT\r\nContent-Type: text/html\r\nContent-Length: 16397\r\n= Connection: keep-alive\r\nAccept-Ranges: bytes\r\n\r\ninternals.record_buffer->head.msg.data[165]) $11 =3D 60 '<' (gdb) p (&session->internals.record_buffer->head.msg.data[165]) $12 =3D (unsigned char *) 0x7f7465 "GNU's advanced distro and transactional package manager =E2=80=94 = GNU=C2=A0Guix8--- IOW, the main process hasn=E2=80=99t consumed the body of the HTTP response. This is because with =E2=80=98filtered-port=E2=80=99, the input port is dum= ped from a child process, not from the calling process. To be continued=E2=80=A6 Ludo=E2=80=99.