From patchwork Sun Nov 29 18:57:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5815 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:6022:91c9:10b0:11b:d6c:f273 with SMTP id tl9-n1csp11863505lad; Sun, 29 Nov 2026 10:57:54 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErHDDTVaLvBFj19VZocjv5P9LfvwPOCtvZqKOxzt5IL8Ea4b+OhhahToApmAKk9U4aHfVF9uHTCPdNs=@openvpn.net X-Received: by 2002:a05:7022:ea4f:b0:1a3:dfb6:e593 with SMTP id a92af1059eb24-1b556900a0amr25251450c88.27.1795978674389; Sun, 29 Nov 2026 10:57:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795978674; cv=none; d=google.com; s=arc-20260327; b=p1V3R3RxQle7lWBh1Va/NFnt+GHYA9o2hJzlChaeuSJQXt4YI0hMAuRheT99DbBG6B FtIu8nEMDKKT+t9h0EUkzbaAIl8yd9FXml9YBW8lI4q1r8GMchKTPl7VJexXJOzBD0FJ nMqWj/vdGoBB0V68tpf/tVynqb2eylQF2hABilcVcbT/p/JMdIRZ1nf61cD8T9GmT3Jz QXWe/JqLx5mcAY4s3cv9S5nBqHwXbw4hik9E+S5VH2AfuKc41vW1JX2RZ5owMs8udEr2 SePYTmlAtAtYNO7I3sfY96whk5vcmyGHkrnrsx15BfE4kHmskyKwwWwXkrJFYeiTH+Dd 2ygg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature:dkim-signature; bh=O3hyKPsidhFLQ8yvO9VEgJos+EwJl9BdHLWhvguBkO4=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=R7CbbJtig2DgtfUMg8kuMmLOnyCb9A2AC1olzPOo/dpMEr/Kbbz/E7/Ae056W4hMeu tXoNLB8+ZcW61OXsavRzFh/51T4EtrYxI6tDg4o3txjDreu/NWTBDzUlDpOMH39zBZ02 zPpj84AWiqRtebVt7h5Njs2kb9O7I3ttM11sI1GeN8OBYcT47OVXk25PYPa9wTNdoY99 jf8wpaWhGcYfXQ8l8BJcScVg8wZFAwcUHlMBaOXURa6NWA6FvCOQ3rWhI/W3t3lv3WE3 nMWGQk3JMGvEbgT6M43ecxOSKQE/NcQpawPWQck2jtMhsQndX58cOxAC7PQ08T8ES0hQ khIw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=eJ5htWOe; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=BL6kqZDz; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b="YI/gDobu"; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id a92af1059eb24-1b5567f2c0csi77217087c88.36.2026.11.29.10.57.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Nov 2026 10:57:54 -0800 (PST) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b=eJ5htWOe; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=BL6kqZDz; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b="YI/gDobu"; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=O3hyKPsidhFLQ8yvO9VEgJos+EwJl9BdHLWhvguBkO4=; b=eJ5htWOernzZwu DJU8H4Hm33y7rNUBSBjEoQGpE4IPrzEof0h9k5lR/qlC/g9YW0j8NepHrFRCXbWhk2rwsb8Ejf05b JdgWvhloPi73s8VKi9s2mEi8WwexlRgy0UoPUjiqd8Vjp+YwDNmE2xreICXLjdTAKyXRwfNu5MezJ +7Q=; Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.100.1) (envelope-from ) id 1xXk5w-000000005ax-3eQX; Sun, 29 Nov 2026 18:57:52 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xXk5v-000000005aq-3tOQ for openvpn-devel@lists.sourceforge.net; Sun, 29 Nov 2026 18:57:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lb8FOLyqG21WTfFZ0aOvXdd/wfaCpFfG1GHQ5v7vhZU=; b=BL6kqZDz4BSF6CsGSz8YpJ1yJP 1oLAHqPzrGVq92zMJTwP6544NIBvoUeSSZSM3wIO+Ey2n9qHrqTA1AKEKjHAM+yFWWj8OAEUUTz9v s9JKvX2urSd9dL1BhuC8pCBBRtf/FPbaVE/Dk19X8Q/mcV8zeG4i7R5QYFKMk4yQG+jM=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lb8FOLyqG21WTfFZ0aOvXdd/wfaCpFfG1GHQ5v7vhZU=; b=YI/gDobue1y6MZmQcYCimSPyQ5 DXA8tMtjcqYNLgsZ9NHSSFngYG2qke7d9RZBgNgbm+UUQx51x9pMgglMB6PxsADTgXw7/Sy/TPY1O FjidPRn/toAKQVJV5frOxpnGiDoZ66rFhMSmTg6m8QFP2R5N6QxCBx5hdiN7O4U2pbgU=; Received: from [193.149.48.129] (helo=blue.greenie.muc.de) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1) id 1xXk5u-000000006vV-0gRq for openvpn-devel@lists.sourceforge.net; Sun, 29 Nov 2026 18:57:51 +0000 Received: from blue.greenie.muc.de (localhost [127.0.0.1]) by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 6ATIvhVl026740 for ; Sun, 29 Nov 2026 19:57:43 +0100 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 6ATIvh1K026739 for openvpn-devel@lists.sourceforge.net; Sun, 29 Nov 2026 19:57:43 +0100 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Sun, 29 Nov 2026 19:57:37 +0100 Message-ID: <20261129185742.26723-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "sfi-spamd-1.hosts.colo.sdot.me", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Heiko Hund If creating the next client pipe instance failed, the service stopped. Drop the client and keep listening on the current instance instead. Handing it to a worker would leave no instance to listen on. Content analysis details: (1.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Headers-End: 1xXk5u-000000006vV-0gRq Subject: [Openvpn-devel] [PATCH v1] openvpnserv: don't stop if the next pipe instance cannot be created X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: 1883220134295257401 X-GMAIL-MSGID: 1883220134295257401 From: Heiko Hund If creating the next client pipe instance failed, the service stopped. Drop the client and keep listening on the current instance instead. Handing it to a worker would leave no instance to listen on. Change-Id: Ib65ceb898d23777663c32241156d597918a24ffb Signed-off-by: Heiko Hund Acked-by: Frank Lichtenheld Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2114 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2114 This mail reflects revision 1 of this Change. Acked-by according to Gerrit (reflected above): Frank Lichtenheld diff --git a/src/openvpnserv/interactive.c b/src/openvpnserv/interactive.c index bffc9da..37e8667 100644 --- a/src/openvpnserv/interactive.c +++ b/src/openvpnserv/interactive.c @@ -4087,6 +4087,16 @@ { /* Client connected, spawn a worker thread for it */ HANDLE next_pipe = CreateClientPipeInstance(); + if (next_pipe == INVALID_HANDLE_VALUE) + { + /* + * Drop the client and keep listening on this instance. Handing + * it over would leave no instance to listen on. + */ + DisconnectNamedPipe(pipe); + ResetOverlapped(&overlapped); + continue; + } /* Avoid exceeding WaitForMultipleObjects MAXIMUM_WAIT_OBJECTS */ if (handle_count + 1 > MAXIMUM_WAIT_OBJECTS)