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:
parent
005194c2fc
commit
c22d2838c7
@ -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"];
|
||||
|
Loading…
x
Reference in New Issue
Block a user