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,AWL,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 5CE251F462 for ; Mon, 10 Jun 2019 05:18:46 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 0/9] ds: Diet Socket Date: Mon, 10 Jun 2019 05:18:37 +0000 Message-Id: <20190610051846.26757-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Getting more aggressive with changes to PublicInbox::DS. I'm thinking patches 8-9 will be important to make TLS support easier. On a side note: while reading the code to IO::KQueue; I've noticed it doesn't take advantage at all of the syscall reduction kevent() can potentially provide over over the use of epoll_ctl+epoll_wait :< Eric Wong (9): ds: simplify write buffer accounting ds: cleanup Errno imports and favor constant comparisons ds: reduce Errno imports and drop ->close reason ds: remove {fd} field ds: remove steal_socket method nntp: use sysread to append to existing buffer ds: remove read method, here, too ds: do not distinguish between POLLHUP and POLLERR ds: stop caring about event flags set by epoll/poll/kqueue lib/PublicInbox/DS.pm | 235 +++++++++------------------------ lib/PublicInbox/EvCleanup.pm | 8 +- lib/PublicInbox/HTTP.pm | 11 +- lib/PublicInbox/HTTPD/Async.pm | 4 +- lib/PublicInbox/NNTP.pm | 44 +++--- 5 files changed, 93 insertions(+), 209 deletions(-) -- EW