Skip to content

Commit

Permalink
Do not yield to body emit backpressure
Browse files Browse the repository at this point in the history
This yield blocked data on other streams from being processed.
  • Loading branch information
trowski committed Sep 18, 2019
1 parent 9780cfc commit 80e9dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection/Http2Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ private function parser(): \Generator
}

if (isset($this->bodyEmitters[$id])) { // Stream may close while reading body chunk.
yield $this->bodyEmitters[$id]->emit($body);
$this->bodyEmitters[$id]->emit($body);
}
}

Expand Down

0 comments on commit 80e9dab

Please sign in to comment.