about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchView.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-20 00:57:13 +0000
committerEric Wong <e@80x24.org>2016-06-20 00:57:35 +0000
commit3b620d93cdc3bcf8eab02fd874a34db7ae013775 (patch)
tree703fe835bb200d6e51065782e7abd72fb4212f1c /lib/PublicInbox/SearchView.pm
parentecad69406fffd47b34ec28bba0b1c9d7fb333c61 (diff)
downloadpublic-inbox-3b620d93cdc3bcf8eab02fd874a34db7ae013775.tar.gz
feed: remove dependence on fh->write for streaming
We'll be switching to a getline/close response body
to give the HTTP server more control when dealing
with slow clients.
Diffstat (limited to 'lib/PublicInbox/SearchView.pm')
-rw-r--r--lib/PublicInbox/SearchView.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm
index 2ec7ddf8..d4c44bab 100644
--- a/lib/PublicInbox/SearchView.pm
+++ b/lib/PublicInbox/SearchView.pm
@@ -249,7 +249,8 @@ sub adump {
         for ($mset->items) {
                 $x = PublicInbox::SearchMsg->load_doc($_->get_document)->mid;
                 $x = mid2path($x);
-                PublicInbox::Feed::add_to_feed($feed_opts, $fh, $x, $git);
+                my $s = PublicInbox::Feed::feed_entry($feed_opts, $x, $git);
+                $fh->write($s) if defined $s;
         }
         PublicInbox::Feed::end_feed($fh);
 }