diff options
author | Eric Wong <e@80x24.org> | 2023-01-06 10:10:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-01-06 10:24:15 +0000 |
commit | a12cd80b5821cf5cb2c8672aad0fba94c451f728 (patch) | |
tree | 479f53ac5fa432044c129a768f21aed35d6fdcf4 /lib/PublicInbox/Qspawn.pm | |
parent | 81a906c55b9510b38ea035dca13475fdd9d27083 (diff) | |
download | public-inbox-a12cd80b5821cf5cb2c8672aad0fba94c451f728.tar.gz |
While git-http-backend sends headers with one write syscall, upstream cgit still trickles them out line-by-line and we need to account for that and retry Qspawn {parse_hdr} callbacks.
Diffstat (limited to 'lib/PublicInbox/Qspawn.pm')
-rw-r--r-- | lib/PublicInbox/Qspawn.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Qspawn.pm b/lib/PublicInbox/Qspawn.pm index f8cbffcb..7984e35a 100644 --- a/lib/PublicInbox/Qspawn.pm +++ b/lib/PublicInbox/Qspawn.pm @@ -134,7 +134,7 @@ sub start ($$$) { } } -sub psgi_qx_init_cb { +sub psgi_qx_init_cb { # this may be PublicInbox::HTTPD::Async {cb} my ($self) = @_; my $async = delete $self->{async}; # PublicInbox::HTTPD::Async my ($r, $buf); @@ -223,7 +223,7 @@ sub rd_hdr ($) { $ret; } -sub psgi_return_init_cb { +sub psgi_return_init_cb { # this may be PublicInbox::HTTPD::Async {cb} my ($self) = @_; my $r = rd_hdr($self) or return; my $env = $self->{psgi_env}; |