From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Newsgroups: gmane.comp.gnu.guix.patches,gmane.lisp.guile.devel Subject: [bug#56867] [PATCH] download: Do not wrap TLS port on GnuTLS >= 3.7.7. Date: Thu, 04 Aug 2022 18:19:37 +0200 Message-ID: <87iln8kmli.fsf@gnu.org> References: <20220801090749.11655-1-ludo@gnu.org> <87pmhgks4j.fsf@gnu.org> <87v8r86p7s.fsf@kolabnow.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4002"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) Cc: 56005@debbugs.gnu.org, 56867@debbugs.gnu.org, guile-devel@gnu.org To: Thiago Jung Bauermann Original-X-From: guix-patches-bounces+gcggp-guix-patches=m.gmane-mx.org@gnu.org Thu Aug 04 18:20:29 2022 Return-path: Envelope-to: gcggp-guix-patches@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJdaH-0000t1-Ar for gcggp-guix-patches@m.gmane-mx.org; Thu, 04 Aug 2022 18:20:29 +0200 Original-Received: from localhost ([::1]:43138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJdaC-0005Be-H4 for gcggp-guix-patches@m.gmane-mx.org; Thu, 04 Aug 2022 12:20:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37472) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJdZr-00058Y-39 for guix-patches@gnu.org; Thu, 04 Aug 2022 12:20:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36502) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJdZq-0007Nv-Q5 for guix-patches@gnu.org; Thu, 04 Aug 2022 12:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJdZq-0000au-Ml for guix-patches@gnu.org; Thu, 04 Aug 2022 12:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 04 Aug 2022 16:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56867 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch Original-Received: via spool by 56867-submit@debbugs.gnu.org id=B56867.16596299902250 (code B ref 56867); Thu, 04 Aug 2022 16:20:02 +0000 Original-Received: (at 56867) by debbugs.gnu.org; 4 Aug 2022 16:19:50 +0000 Original-Received: from localhost ([127.0.0.1]:54483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJdZd-0000a8-Dl for submit@debbugs.gnu.org; Thu, 04 Aug 2022 12:19:49 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJdZa-0000Zk-5h; Thu, 04 Aug 2022 12:19:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44718) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJdZU-0007Kt-6L; Thu, 04 Aug 2022 12:19:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=DasnAarmzFpQUQWOaEtyrNbh3jpTTVyEnzKQXoS8DB0=; b=dHY2pLK/8ckd8h6bMSBT s0vNvxKfDmDX7H/VeZuKdwNuZjpdxvYnXxTqmAogrVpznTnWH7H47dwtsZKX1BCE0o6BtxsBqOC6e H9/2pf7Kdg8xQt6GOHtQXGqJDhTpzzWc5L91nVgGvfSRrnDoI5gogMaGsx+9W7srlqaHJ6yh3XSZ2 T6GREbcVH+Ds2mQQMcQs8cQDe85QTTyThcxXpJFXuZNQ7YGdO15IyyBJII8vvU7VZXK4hHr0xmIts AwOvi1LbInZEaz0g/luRUOR+zRbhQQ1j17G/jdoIzEZ/M9ukxjuChznRw4gwvbdYeNBOvN6QXAzsm 3NGt0uJJIcXtdg==; Original-Received: from [193.50.111.124] (port=37600 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJdZT-0006rR-AG; Thu, 04 Aug 2022 12:19:39 -0400 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 17 Thermidor an 230 de la =?UTF-8?Q?R=C3=A9volution, ?= jour du Lin X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu In-Reply-To: <87v8r86p7s.fsf@kolabnow.com> (Thiago Jung Bauermann's message of "Thu, 04 Aug 2022 11:46:47 -0300") 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+gcggp-guix-patches=m.gmane-mx.org@gnu.org Original-Sender: "Guix-patches" Xref: news.gmane.io gmane.comp.gnu.guix.patches:28607 gmane.lisp.guile.devel:21294 Archived-At: Hi, Thiago Jung Bauermann skribis: > Ludovic Court=C3=A8s writes: > >> First, I noticed that GnuTLS doesn=E2=80=99t implement =E2=80=98write_wa= it_fd=E2=80=99, only >> =E2=80=98read_wait_fd=E2=80=99 (not sure how problematic that is): >> >> scheme@(guile-user)> ,use(web client) >> scheme@(guile-user)> (define p (open-socket-for-uri "https://guix.gnu.or= g")) >> scheme@(guile-user)> ((@@ (ice-9 suspendable-ports) wait-for-writable) p) >> ice-9/boot-9.scm:1685:16: In procedure raise-exception: >> In procedure write_wait_fd: unimplemented >> >> Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. >> scheme@(guile-user) [1]> ,q >> scheme@(guile-user)> ,use(gnutls) >> scheme@(guile-user)> (gnutls-version) >> $1 =3D "3.7.7" >> scheme@(guile-user)> ((@@ (ice-9 suspendable-ports) wait-for-readable) p) >> $2 =3D 1 > > This occasionally causes problems when fetching substitutes, as can be > seen in bug #56005 (during substitution: write_wait_fd: unimplemented). Oh, I have not seen it but it=E2=80=99s weird: (guix scripts substitute) do= esn=E2=80=99t use O_NONBLOCK sockets, so I don=E2=80=99t get how it can hit that. Needs investigation=E2=80=A6 Thanks, Ludo=E2=80=99.