From 736b108a75b50ee530803a08c972d6e07b1dceeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yves=20R=C5=B1tschl=C3=A9?= Date: Wed, 13 Mar 2024 16:58:09 +0100 Subject: [PATCH] dont log error when remote client drops connection on Windows (fix #427) --- ChangeLog | 3 +++ common.c | 1 + 2 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index b6fe57d..f613772 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ vNEXT: Introduce autoconf to adapt to landlock presence. + Close connexion without error message if remote + client forcefully closes connexion, for Windows. + v2.0.1: Fix resolve_on_forward setting, which would crash sslh reliably. diff --git a/common.c b/common.c index 9f5b59a..af3947e 100644 --- a/common.c +++ b/common.c @@ -482,6 +482,7 @@ int fd2fd(struct queue *target_q, struct queue *from_q) return FD_NODATA; case ECONNRESET: + case ENOTSOCK: case EPIPE: return FD_CNXCLOSED; }