From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 21C0B1F406 for ; Tue, 31 Oct 2023 20:42:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1698784976; bh=K2t3EDOgE8N+iUBNKeT7WPZ7tnqsKHo4Vno8VqksHTg=; h=From:To:Subject:Date:From; b=G5V4tF1Pq1rUwVTCN3PvbFd1KpfZMsPS7bhnD9y8o6hKRFyLPa1Tzb/2iNk3L0wt0 lN0vdPbQbwKxnNzccnJe7ZntckJTa5/L7W8zmMtjtVxNAZ/3+rhz9sSBsCVOI4bqM4 jhfObqF2kBU940ZPI4olzdQnJbTddLHYhLo6nlPA= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/6] ds: object lifetime shortening Date: Tue, 31 Oct 2023 20:42:49 +0000 Message-Id: <20231031204255.1837649-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 1 and 2 do the bulk of the work 3 and 4 are things I noticed when working on 2 5 is a fix while preparing for 6 6 is something I've wanted to do for a long time. Anyways, the code reductions always make me happy. Eric Wong (6): ds: next_tick: shorten object lifetimes ds: do not defer close ds: move maxevents further down the stack watch: simplify DirIdle object cleanup pop3: use SSL_shutdown(3ssl) if appropriate ds: make ->close behave like CORE::close lib/PublicInbox/CidxComm.pm | 2 +- lib/PublicInbox/CidxLogP.pm | 2 +- lib/PublicInbox/DS.pm | 143 ++++++++++++------------------------ lib/PublicInbox/DSKQXS.pm | 3 +- lib/PublicInbox/DSPoll.pm | 2 +- lib/PublicInbox/Epoll.pm | 5 +- lib/PublicInbox/POP3.pm | 2 +- lib/PublicInbox/Select.pm | 2 +- lib/PublicInbox/Watch.pm | 11 +-- t/ds-poll.t | 14 ++-- t/epoll.t | 4 +- 11 files changed, 71 insertions(+), 119 deletions(-)