[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#56867: [PATCH] download: Do not wrap TLS port on GnuTLS >= 3.7.7
From: |
Ludovic Courtès |
Subject: |
Re: bug#56867: [PATCH] download: Do not wrap TLS port on GnuTLS >= 3.7.7. |
Date: |
Wed, 03 Aug 2022 17:57:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Ludovic Courtès <ludo@gnu.org> skribis:
> The custom input/output port wrapping the TLS session record port would
> introduce overhead, and it would also prevent its uses in a non-blocking
> context--e.g., with Fibers. The port close mechanism added in GnuTLS
> 3.7.7 allows us to get rid of that wrapper.
>
> * guix/build/download.scm (wrap-record-port-for-gnutls<3.7.7): New
> procedure, with code formerly in 'tls-wrap'.
> (tls-wrap): Check for 'set-session-record-port-close!' and use it when
> available; otherwise call 'wrap-record-port-for-gnutls<3.7.7'.
> ---
> guix/build/download.scm | 102 +++++++++++++++++++++-------------------
> 1 file changed, 54 insertions(+), 48 deletions(-)
Pushed as Guix commit dd573ceea73295c7a872088ecd91e5f0fd74bf2b.
Ludo’.
Re: bug#56867: [PATCH] download: Do not wrap TLS port on GnuTLS >= 3.7.7.,
Ludovic Courtès <=
Re: bug#56867: [PATCH] download: Do not wrap TLS port on GnuTLS >= 3.7.7., Ludovic Courtès, 2022/08/04