From 3b620d93cdc3bcf8eab02fd874a34db7ae013775 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 20 Jun 2016 00:57:13 +0000 Subject: 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. --- lib/PublicInbox/SearchView.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/SearchView.pm') 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); } -- cgit v1.2.3-24-ge0c7