diff options
author | Eric Wong <e@80x24.org> | 2016-04-30 02:57:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-04-30 02:58:11 +0000 |
commit | f30a78b3b8f00298c5be2aa724a7358ff892efda (patch) | |
tree | 66df19718d0ad80fcefba396755e3a1f7e1aaa55 /lib/PublicInbox/HTTPD/Async.pm | |
parent | 777eadff478fde1aca20148e0c5dd85567a8aa15 (diff) | |
download | public-inbox-f30a78b3b8f00298c5be2aa724a7358ff892efda.tar.gz |
git clones may take a long time and it's wrong to drop connections in the middle of a transaction.
Diffstat (limited to 'lib/PublicInbox/HTTPD/Async.pm')
-rw-r--r-- | lib/PublicInbox/HTTPD/Async.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicInbox/HTTPD/Async.pm b/lib/PublicInbox/HTTPD/Async.pm index 63985026..bedb397d 100644 --- a/lib/PublicInbox/HTTPD/Async.pm +++ b/lib/PublicInbox/HTTPD/Async.pm @@ -32,4 +32,7 @@ sub close { $self->SUPER::close(@_); } +# do not let ourselves be closed during graceful termination +sub busy () { $_[0]->{cb} } + 1; |