Skip to content

Conversation

@joelwurtz
Copy link
Member

@joelwurtz joelwurtz commented Mar 14, 2018

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets #98
License MIT

What's in this PR?

Add a buffer option to decoder plugin

Why?

Allow to seek / rewind a stream which has been filtered

To Do

  • Add tests
  • Add options to pass to the buffered stream (memory max usage, buffer type : file / memory)

}

if ($this->buffered) {
$decorated = new BufferedStream($decorated);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact this is a bad place as we only need this buffer once at the end, if we have a stream that is both gzip and chunked encoded we will have 2 buffered streams :/

@joelwurtz
Copy link
Member Author

close in favor of #167

@joelwurtz joelwurtz closed this Jan 21, 2019
@joelwurtz joelwurtz deleted the buffered-stream branch January 21, 2019 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants