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.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF 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 950571FB01 for ; Thu, 15 Dec 2022 20:52:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1671137579; bh=BVFkV8I9JNiGAJjpknH79MticaApZDp+hD9Yg3tHMRo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZIgiuSz5Y7av/Vfv719madjPWc3NQzPG/Ia04hSfhKNwPlHw/r8jMAaDSJnsWHQkX lmKCFd1FsVks5tZKa7Q7AGr54wFOmpuIFhqhcBmjrX23A5DKXF25ChJK3SEJyn3Aem wxYVjLSFxjWacnAjeeusqjJjqWeQgvC/QnhOvAbk= From: Eric Wong To: mwrap-perl@80x24.org Subject: [PATCH 18/19] httpd: drop TODO item for pipelining Date: Thu, 15 Dec 2022 20:52:54 +0000 Message-Id: <20221215205255.27840-19-e@80x24.org> In-Reply-To: <20221215205255.27840-1-e@80x24.org> References: <20221215205255.27840-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It's not worth it. Arguably, supporting persistent connections for a AF_LOCAL-only daemon is overkill. --- httpd.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/httpd.h b/httpd.h index 58db400..9b4ebe7 100644 --- a/httpd.h +++ b/httpd.h @@ -771,11 +771,10 @@ static enum mw_qev h1_drain_input(struct mw_h1 *h1, struct mw_h1req *h1r) if (h1r) { /* initial */ ssize_t overread = h1r->rbuf_len - h1r->pret; mwrap_assert(overread >= 0); - if ((size_t)overread <= h1->in_len) { + if ((size_t)overread <= h1->in_len) h1->in_len -= overread; - } else { /* TODO: deal with pipelined requests */ + else /* pipelining not supported */ return h1_400(h1); - } } else { /* continue dealing with a trickle */ h1r = h1->h1r; mwrap_assert(h1r);