Skip to content

Commit

Permalink
istream/Chunked: deliver EOF chunk via bucket, no fallback
Browse files Browse the repository at this point in the history
Just a minor optimization.
  • Loading branch information
MaxKellermann committed Aug 17, 2023
1 parent 94efaf7 commit b1aef2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/istream/ChunkedIstream.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,9 @@ void
ChunkedIstream::_FillBucketList(IstreamBucketList &list)
{
if (!input.IsDefined()) {
// TODO: generate EOF chunk
list.EnableFallback();
if (auto b = ReadBuffer(); !b.empty())
list.Push(std::as_bytes(b));

return;
}

Expand Down

0 comments on commit b1aef2d

Please sign in to comment.