From c22d2838c7f8a90d5c692c7c3c480b312e162d9d Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Wed, 28 Jun 2017 23:59:24 -0500 Subject: [PATCH] Read more data if channel prefix is invalid --- lib/Sync/ChannelParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sync/ChannelParser.php b/lib/Sync/ChannelParser.php index 16a781e..400a482 100644 --- a/lib/Sync/ChannelParser.php +++ b/lib/Sync/ChannelParser.php @@ -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"];