From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id DEFFD1F775 for ; Sun, 30 Dec 2018 02:33:23 +0000 (UTC) From: Eric Wong To: yahns-public@yhbt.net Subject: [PATCH 1/2] server: respect shutdown_timeout Date: Sun, 30 Dec 2018 02:33:17 +0000 Message-Id: <20181230023318.27753-2-e@80x24.org> In-Reply-To: <20181230023318.27753-1-e@80x24.org> References: <20181230023318.27753-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It seems there is still a bug in the proxy code which causes this timeout expiries to be missed. --- lib/yahns/server.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/yahns/server.rb b/lib/yahns/server.rb index 583fd38..128b894 100644 --- a/lib/yahns/server.rb +++ b/lib/yahns/server.rb @@ -500,6 +500,8 @@ def dropping(fdmap) if drop_acceptors[0] || fdmap.size > 0 timeout = @shutdown_expire < Yahns.now ? -1 : @shutdown_timeout n = fdmap.desperate_expire(timeout) + return false if timeout == -1 + $0 = "yahns quitting, #{n} FD(s) remain" true else -- EW