Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add buffered stream to decoder plugin #99

Closed
wants to merge 1 commit into from
Closed

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.

1 participant