1
0
mirror of https://github.com/danog/parallel.git synced 2025-01-22 22:11:11 +01:00

Read more data if channel prefix is invalid

This commit is contained in:
Aaron Piotrowski 2017-06-28 23:59:24 -05:00
parent 005194c2fc
commit c22d2838c7
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -50,7 +50,7 @@ class ChannelParser extends Parser {
$data = \unpack("Cprefix/Llength", $header);
if ($data["prefix"] !== 0) {
throw new ChannelException("Invalid header received: " . \bin2hex($header));
throw new ChannelException("Invalid header received: " . \bin2hex($header . yield));
}
$data = yield $data["length"];