public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Rob Rozestraten via pve-devel <pve-devel@lists.proxmox.com>
To: pve-devel@lists.proxmox.com
Cc: Rob Rozestraten <admin@truthsolo.net>
Subject: [pve-devel] [PATCH pve-http-server 1/1] close TLS gracefully to avoid unexpected EOF at client
Date: Wed, 26 Feb 2025 22:51:39 +0000	[thread overview]
Message-ID: <mailman.598.1740610963.293.pve-devel@lists.proxmox.com> (raw)
In-Reply-To: <20250226225126.346918-1-admin@truthsolo.net>

[-- Attachment #1: Type: message/rfc822, Size: 3694 bytes --]

From: Rob Rozestraten <admin@truthsolo.net>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-http-server 1/1] close TLS gracefully to avoid unexpected EOF at client
Date: Wed, 26 Feb 2025 22:51:39 +0000
Message-ID: <20250226225126.346918-2-admin@truthsolo.net>

Signed-off-by: Rob Rozestraten <admin@truthsolo.net>
---
 src/PVE/APIServer/AnyEvent.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/PVE/APIServer/AnyEvent.pm b/src/PVE/APIServer/AnyEvent.pm
index 8a52836..771b153 100644
--- a/src/PVE/APIServer/AnyEvent.pm
+++ b/src/PVE/APIServer/AnyEvent.pm
@@ -141,6 +141,7 @@ sub client_do_disconnect {
     my $shutdown_hdl = sub {
 	my $hdl = shift;
 
+	$hdl->stoptls() if $hdl->{tls};
 	shutdown($hdl->{fh}, 1);
 	# clear all handlers
 	$hdl->on_drain(undef);
-- 
2.48.1




[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

       reply	other threads:[~2025-02-26 23:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20250226225126.346918-1-admin@truthsolo.net>
2025-02-26 22:51 ` Rob Rozestraten via pve-devel [this message]
2025-02-27  9:35   ` Fabian Grünbichler

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

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

  git send-email \
    --in-reply-to=mailman.598.1740610963.293.pve-devel@lists.proxmox.com \
    --to=pve-devel@lists.proxmox.com \
    --cc=admin@truthsolo.net \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal