From 21a539a2df0cbbc929aecec88f9fd6879e20f466 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 28 Jun 2019 18:58:36 +0000 Subject: httpd/async: switch to buffering-as-fast-as-possible With DS buffering to a temporary file nowadays, applying backpressure to git-http-backend(1) hurts overall memory usage of the system. Instead, try to get git-http-backend(1) to finish as quickly as possible and use edge-triggered notifications to reduce wakeups on our end. --- lib/PublicInbox/DS.pm | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib/PublicInbox/DS.pm') diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm index b2f59983..a8236023 100644 --- a/lib/PublicInbox/DS.pm +++ b/lib/PublicInbox/DS.pm @@ -571,12 +571,6 @@ sub epwait ($$) { 0; } -sub watch ($$) { - my ($self, $ev) = @_; - my $sock = $self->{sock} or return; - epwait($sock, $ev); -} - # return true if complete, false if incomplete (or failure) sub accept_tls_step ($) { my ($self) = @_; -- cgit v1.2.3-24-ge0c7