* Low-level checks of the raw data went all fine, now decode the
* raw data. This may still fail because of invalid encoded data.
*/
- $decodedData = $this->getInputStreamInstance()->streamData($rawData);
+ try {
+ $decodedData = $this->getInputStreamInstance()->streamData($rawData);
+ } catch (AssertionException $e) {
+ /*
+ * This may happen with a multi-chunk stream (more data sent
+ * than output/input buffers can handle) so the raw data needs
+ * to be handled somewhere else.
+ */
+ $decodedData = $rawData;
+ }
}
// Add the (maybe above decoded) data to the stacker