unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Augusto Stoffel <arstoffel@gmail.com>, Robert Pluim <rpluim@gmail.com>
Cc: 74193@debbugs.gnu.org
Subject: bug#74193: 30.0.92; noquery argument ignored when creating a TLS connection
Date: Mon, 04 Nov 2024 14:01:53 +0200	[thread overview]
Message-ID: <86a5efw6ku.fsf@gnu.org> (raw)
In-Reply-To: <87cyjc6v8n.fsf@ars3.mail-host-address-is-not-set> (message from Augusto Stoffel on Sun, 03 Nov 2024 19:13:44 +0100)

> From: Augusto Stoffel <arstoffel@gmail.com>
> Cc: Augusto Stoffel <arstoffel@gmail.com>,  74193@debbugs.gnu.org
> Date: Sun, 03 Nov 2024 19:13:44 +0100
> 
> On Sun,  3 Nov 2024 at 19:44, Eli Zaretskii wrote:
> 
> > AFAICT, open-gnutls-stream doesn't support :noquery, so Emacs
> > basically ignores :noquery in this case and starts a network process
> > with query-on-exit flag set.
> 
> Indeed, the fix is trivial:
> 
> 
> >From 01d73dea9243d2b57b6ed2bd0fa37e0935ef7a74 Mon Sep 17 00:00:00 2001
> From: Augusto Stoffel <arstoffel@gmail.com>
> Date: Sun, 3 Nov 2024 19:11:54 +0100
> Subject: [PATCH] * lisp/net/gnutls.el (open-gnutls-stream): Use :noquery
>  option
> 
> ---
>  lisp/net/gnutls.el | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lisp/net/gnutls.el b/lisp/net/gnutls.el
> index b5fb4d47d57..e8614bfc6d3 100644
> --- a/lisp/net/gnutls.el
> +++ b/lisp/net/gnutls.el
> @@ -200,6 +200,7 @@ open-gnutls-stream
>           (process (open-network-stream
>                     name buffer host service
>                     :nowait nowait
> +                   :noquery (plist-get parameters :noquery)
>                     :tls-parameters
>                     (and nowait
>                          (cons 'gnutls-x509pki

Thanks.

Robert, do you know if GnuTLS, as we use it in Emacs, supports this on
all platforms?  With both :nowait and non-:nowait?  More generally, I
wonder why we don't pass all the parameters to open-network-stream?

In any case, the doc string should be fixed to mention :noquery.





  reply	other threads:[~2024-11-04 12:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-03 16:27 bug#74193: 30.0.92; noquery argument ignored when creating a TLS connection Augusto Stoffel
2024-11-03 17:44 ` Eli Zaretskii
2024-11-03 18:13 ` Augusto Stoffel
2024-11-04 12:01   ` Eli Zaretskii [this message]
2024-11-04 16:38     ` Robert Pluim
2024-11-04 17:05       ` Eli Zaretskii
2024-11-04 17:18         ` Robert Pluim
2024-11-05 14:04           ` Robert Pluim
2024-11-04 16:35   ` Robert Pluim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86a5efw6ku.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=74193@debbugs.gnu.org \
    --cc=arstoffel@gmail.com \
    --cc=rpluim@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).