Skip to content

Commit

Permalink
Read more data if channel prefix is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Jun 29, 2017
1 parent 005194c commit c22d283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Sync/ChannelParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private static function parser(callable $callback, callable $errorHandler): \Gen
$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"];
Expand Down

0 comments on commit c22d283

Please sign in to comment.