From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.bugs Subject: bug#74193: 30.0.92; noquery argument ignored when creating a TLS connection Date: Sun, 03 Nov 2024 19:13:44 +0100 Message-ID: <87cyjc6v8n.fsf@ars3.mail-host-address-is-not-set> References: <87cyjcs2p7.fsf@ars3.mail-host-address-is-not-set> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19372"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74193@debbugs.gnu.org, Augusto Stoffel To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 03 19:15:17 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1t7f88-0004t6-Ss for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 03 Nov 2024 19:15:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7f7w-0005bU-FQ; Sun, 03 Nov 2024 13:15:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t7f7u-0005a6-B2 for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2024 13:15:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t7f7u-0005TY-1X for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2024 13:15:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=Dq7O9O5M7Lqm9HB84/8ZupaEEpSYsUd+47DyfUVl1zw=; b=FWwZ2H2xwk1oHSvDyqjb0fyqZ3C2iTG1M46VI/xbZ3ee/Uijd3zdXeHXUz86D+nQuEog3q1o6zuceUIJpSWBMYu1ORJFwgxGxh6FcBYbtaVytEgPzOxbM1srRYBAVhXwhSl9F9qZLUcFx4LdYYzoZg/mYdvneTDgOWxKJuQqSN7oKRtTIqD9R6KxLL0ji21ugdJZVdkKYF1EAdfoT2N5rmpi7uBFW0L0xl5jINnD9rm3MGTO0SEBchFrGVtaTmcO3K5vZkTvPBj8fwEJ6bGxo9muom+kjV+s0uLPrvaQoAZhQAvBa7NwAAZ7IXJeWMSxF9/wTOOXCeZgmrEb4jDrvg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t7f7t-000811-T2 for bug-gnu-emacs@gnu.org; Sun, 03 Nov 2024 13:15:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87cyjcs2p7.fsf@ars3.mail-host-address-is-not-set> Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Nov 2024 18:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74193 X-GNU-PR-Package: emacs Original-Received: via spool by 74193-submit@debbugs.gnu.org id=B74193.173065769630788 (code B ref 74193); Sun, 03 Nov 2024 18:15:01 +0000 Original-Received: (at 74193) by debbugs.gnu.org; 3 Nov 2024 18:14:56 +0000 Original-Received: from localhost ([127.0.0.1]:33800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7f7n-00080W-Jm for submit@debbugs.gnu.org; Sun, 03 Nov 2024 13:14:55 -0500 Original-Received: from mail-ej1-f45.google.com ([209.85.218.45]:59692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7f7l-00080M-SA for 74193@debbugs.gnu.org; Sun, 03 Nov 2024 13:14:54 -0500 Original-Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a9a68480164so545629466b.3 for <74193@debbugs.gnu.org>; Sun, 03 Nov 2024 10:14:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730657628; x=1731262428; darn=debbugs.gnu.org; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=Dq7O9O5M7Lqm9HB84/8ZupaEEpSYsUd+47DyfUVl1zw=; b=UdQ6RfUdiCR4m1iUJdhzBXWqFd9agfDFd+GVby6gb4f+h+IEDlf5L8DpmgseeVe749 6bKOf1veN/ETW1dqkOMTc5Szk8CprGkqjph377AVZYGd7lxA7l+0OqOLOXhKi9rOwUdL D+YygO/IVHxAvPI9wAMSJ68Syvq0hy5Jf/d0nPXGUG0DUtwQayv75Jbaf0rdnOx0en27 36CTHHyHbdRYlwG8aAkwO2ZF6gFuN7Duv/DcrSJsqDOSoBWlsPKyBnAuzonb4zOGocr9 BgB+6evuFxaBEiS3DZ1v5J1oTHQmL3FJzMkGvtLYxfZxDRnl9FLRfHz44j/F6CTwNKNe gyCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730657628; x=1731262428; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Dq7O9O5M7Lqm9HB84/8ZupaEEpSYsUd+47DyfUVl1zw=; b=N0bxuGTZqfw2rjAOLDFzvaXlBhqT6z2JSSZzvmoPqcDDkZJPb4f08RfgrZ7WbhtZU7 vtQr/Lqi4WZDur9UaLcPbP7MkLQ62n8tjApbX2CQrSPthZ4x2oBVp8Urc3vTWM6drR65 63fYonMN2FXjwa8gEXAiTwz/KPgmxelcvEG6kmHGFgqerUEeP+i41nXpCxzi3O9tlt5c qjgaKmAblkXMNxl2ApEemhEJxPpu4xuqFEi+2HEsEbJ0/5ATuHDB9nF06qfEmEp5Fj8/ Iegr67QE0Wv4ClZFJrc+Mpd+9eKkGvYivbX2F4O6GVR4/iqOq60ZEofPXH2bhQrpe7JA ZstQ== X-Forwarded-Encrypted: i=1; AJvYcCWzLsAfJopZXJFEpJKPKZNJdMWn1UU2WMbkn7e5LHM3vJ/aHexwRSjKjfwY3qG1luP1rLWCrg==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwiArkC8ydGcu6IAAdVpY9whP3PPS6YfIeJOa4I2pSDHXX0os7E tamsCUn/9t/xLpIu7rNG3YcsdzHA1Ql/q+55E+IhLT5qLArlTBsywrPANg== X-Google-Smtp-Source: AGHT+IFFrkgd6fpc+dgHcTp44VnFZ2m15Xeo34w79Bqm1f2iU3URYGdGpNQgOjgAxdqU3eUb8rM+bQ== X-Received: by 2002:a17:907:6d0d:b0:a9a:2afc:e4e4 with SMTP id a640c23a62f3a-a9de61a0523mr3207350866b.59.1730657626713; Sun, 03 Nov 2024 10:13:46 -0800 (PST) Original-Received: from ars3 ([2a02:8109:8a87:ff00::d6f6]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9e565df912sm450403966b.139.2024.11.03.10.13.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Nov 2024 10:13:45 -0800 (PST) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294810 Archived-At: --=-=-= Content-Type: text/plain On Sun, 3 Nov 2024 at 19:44, Eli Zaretskii wrote: >> From: Augusto Stoffel >> 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: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-net-gnutls.el-open-gnutls-stream-Use-noquery-op.patch >From 01d73dea9243d2b57b6ed2bd0fa37e0935ef7a74 Mon Sep 17 00:00:00 2001 From: Augusto Stoffel 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 --=-=-=--