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/HTTP.pm | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/PublicInbox/HTTP.pm') diff --git a/lib/PublicInbox/HTTP.pm b/lib/PublicInbox/HTTP.pm index 680be72b..5546ac46 100644 --- a/lib/PublicInbox/HTTP.pm +++ b/lib/PublicInbox/HTTP.pm @@ -467,11 +467,4 @@ sub busy () { ($self->{rbuf} || $self->{env} || $self->{wbuf}); } -# fires after pending writes are complete: -sub restart_pass ($) { - $_[0]->{forward}->restart_read; # see PublicInbox::HTTPD::Async -} - -sub enqueue_restart_pass ($) { $_[0]->write(\&restart_pass) } - 1; -- cgit v1.2.3-24-ge0c7