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 E97D01F461 for ; Mon, 8 Jul 2019 04:53:48 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] http: use MSG_MORE for identity callback, too Date: Mon, 8 Jul 2019 04:53:48 +0000 Message-Id: <20190708045348.28716-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: No point in using ->write to flush data out to a client when the chunked callback also uses MSG_MORE to reduce packets. --- lib/PublicInbox/HTTP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm index 5546ac46..1bd65331 100644 --- a/lib/PublicInbox/HTTP.pm +++ b/lib/PublicInbox/HTTP.pm @@ -237,7 +237,7 @@ sub chunked_wcb ($) { sub identity_wcb ($) { my ($self) = @_; - sub { $self->write(\($_[0])) if $_[0] ne '' } + sub { msg_more($self, $_[0]) if $_[0] ne '' } } sub next_request ($) { -- EW