From 347c6ee595c37d4e2214cb297811f154a41c452f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 23 May 2016 04:01:14 +0000 Subject: git-http-backend: refactor to support cleanup We will have clients dropping connections during long clone and fetch operations; so do not retain references holding backend processes once we detect a client has dropped. --- lib/PublicInbox/HTTPD.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/PublicInbox/HTTPD.pm') diff --git a/lib/PublicInbox/HTTPD.pm b/lib/PublicInbox/HTTPD.pm index 78efaa50..433d6da7 100644 --- a/lib/PublicInbox/HTTPD.pm +++ b/lib/PublicInbox/HTTPD.pm @@ -8,10 +8,7 @@ use Plack::Util; require PublicInbox::HTTPD::Async; require PublicInbox::Daemon; -sub pi_httpd_async { - my ($io, $cb) = @_; - PublicInbox::HTTPD::Async->new($io, $cb); -} +sub pi_httpd_async { PublicInbox::HTTPD::Async->new(@_) } sub new { my ($class, $sock, $app) = @_; -- cgit v1.2.3-24-ge0c7