unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Augusto Stoffel <arstoffel@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: Sun, 03 Nov 2024 19:13:44 +0100	[thread overview]
Message-ID: <87cyjc6v8n.fsf@ars3.mail-host-address-is-not-set> (raw)
In-Reply-To: <87cyjcs2p7.fsf@ars3.mail-host-address-is-not-set>

[-- Attachment #1: Type: text/plain, Size: 620 bytes --]

On Sun,  3 Nov 2024 at 19:44, Eli Zaretskii wrote:

>> From: Augusto Stoffel <arstoffel@gmail.com>
>> Date: Sun, 03 Nov 2024 17:27:00 +0100
>> 
>> If I evaluate the form below and then run C-x C-c, I get asked if I want
>> to kill the network process.
>> 
>>   (open-network-stream "test" nil "www.gnu.org" 443 :type 'tls :noquery t)
>> 
>> If I removed the `:type 'tls' option, then :noquery takes effect as
>> expected.
>
> 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:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-net-gnutls.el-open-gnutls-stream-Use-noquery-op.patch --]
[-- Type: text/x-patch, Size: 785 bytes --]

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


  parent reply	other threads:[~2024-11-03 18:13 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 [this message]
2024-11-04 12:01   ` Eli Zaretskii
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=87cyjc6v8n.fsf@ars3.mail-host-address-is-not-set \
    --to=arstoffel@gmail.com \
    --cc=74193@debbugs.gnu.org \
    --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).