unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 74193@debbugs.gnu.org, Augusto Stoffel <arstoffel@gmail.com>
Subject: bug#74193: 30.0.92; noquery argument ignored when creating a TLS connection
Date: Mon, 04 Nov 2024 17:38:47 +0100	[thread overview]
Message-ID: <87msifneco.fsf@gmail.com> (raw)
In-Reply-To: <86a5efw6ku.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 04 Nov 2024 14:01:53 +0200")

>>>>> On Mon, 04 Nov 2024 14:01:53 +0200, Eli Zaretskii <eliz@gnu.org> said:

    >> 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

    Eli> Thanks.

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

I donʼt know if itʼs supported everywhere, I suspect the interactions
with :nowait could get interesting. As far as I remember,
`open-gnutls-stream' is supposed to be a 'simple' wrapper, which is
why it doesnʼt support all the keywords.

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

Which doc string? `open-gnutls-stream', after this patch?

Robert
-- 





  reply	other threads:[~2024-11-04 16:38 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
2024-11-04 16:38     ` Robert Pluim [this message]
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=87msifneco.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=74193@debbugs.gnu.org \
    --cc=arstoffel@gmail.com \
    --cc=eliz@gnu.org \
    /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).