From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EIjIF9iDomBGqQAAgWs5BA (envelope-from ) for ; Mon, 17 May 2021 16:55:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AEpSE9iDomB2VgAAbx9fmQ (envelope-from ) for ; Mon, 17 May 2021 14:55:20 +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 B8C2F213EB for ; Mon, 17 May 2021 16:55:19 +0200 (CEST) Received: from localhost ([::1]:51804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lieeL-0002NN-HN for larch@yhetil.org; Mon, 17 May 2021 10:55:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lieWM-0001Mh-Po for guix-patches@gnu.org; Mon, 17 May 2021 10:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41840) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lieWM-00020R-Go for guix-patches@gnu.org; Mon, 17 May 2021 10:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lieWM-0007Ny-FT for guix-patches@gnu.org; Mon, 17 May 2021 10:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47174] [PATCH v2 2/2] substitute: Handle closing connections to substitute servers. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 May 2021 14:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47174 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Christopher Baines Cc: 47174@debbugs.gnu.org Received: via spool by 47174-submit@debbugs.gnu.org id=B47174.162126279827377 (code B ref 47174); Mon, 17 May 2021 14:47:02 +0000 Received: (at 47174) by debbugs.gnu.org; 17 May 2021 14:46:38 +0000 Received: from localhost ([127.0.0.1]:53386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lieVy-00077G-3d for submit@debbugs.gnu.org; Mon, 17 May 2021 10:46:38 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lieVv-00072R-UB for 47174@debbugs.gnu.org; Mon, 17 May 2021 10:46:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45020) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lieVq-0001kn-Jb; Mon, 17 May 2021 10:46:30 -0400 Received: from [109.190.253.11] (port=55380 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lieVp-0001sr-Qs; Mon, 17 May 2021 10:46:30 -0400 From: Mathieu Othacehe References: <20210516221121.16705-1-mail@cbaines.net> <20210516221121.16705-2-mail@cbaines.net> Date: Mon, 17 May 2021 16:46:27 +0200 In-Reply-To: <20210516221121.16705-2-mail@cbaines.net> (Christopher Baines's message of "Sun, 16 May 2021 23:11:21 +0100") Message-ID: <87k0nxa058.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621263319; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=weEM5nIJ+gReCXfyZ3KCSvH+cVxPJ2jxCdUzV4rg8yg=; b=OdvexuH0SszTPd24DaDU4h7x4mdJoTZEV/ygb1c1SSA0bUMSsAYbY6OIPPSVmzOIjuVlFT aMzVl7WKyt1FMmIBDTywRNGF7ituazJTzQRDZXhtuT4PUQ2H7Z2ie5/dZy7/5Xp1qOv/x8 MLbOQEpH7WhkFtqKpir/9IHELdmdV4TYPK/SBVB8ht3mWpUtyp5wgk8snI0GYrT/GBxmPe PbQ7JGrcrJwA6YDBha89FzJ5hf7QWqSONe2SeAfymOcdLF0ygqGzo3CToFVPdGlUeN3rsG bk+lcGfqbYafydKlTw+OQN6LrLizRcBLl16JwgucDOR1P5B9HeCGZ28x3mANQw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621263319; a=rsa-sha256; cv=none; b=eqXhX5Ge+Ap4nqY/w/C9ujpBqE1eGbmmi7ZhUmk7mbZ3emOD0uX9y72PNh/6E7tw77PucW J6FDSyQbm52O6A/rljLDfLqM6+5FgyP4DHDJkb1O7s0drGOXr8E9AjMeaEes94KCntGphh BKH8jZSNaDjhVYng8rAi18IqCqcYq1SguYzFzxWGFl9Bg84pFQX0nkm/QBOtTOaOJFdrh5 TYWCdmkm9jcgriZyQlmNp5RQeev/9f27fuRjYAdwlNsBBcw0e3lLyPgIkagLRiTvgwir8e hnGQwO3FY4s221sI9x/IE9LA9+5NTFhV2NMP6aPof4n1y7rrDUc9jB3HTvR6Eg== 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 guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.44 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: B8C2F213EB X-Spam-Score: -1.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: ukd3C5YctLKi > + (match (assq 'connection (response-headers response)) > + (('connection 'close) > + (lambda () > + (close-port port))) You could maybe factorize it in a close-connection? procedure. Out of curiosity, when does the remote server asks for connection closing? Thanks, Mathieu