Skip to content

Commit

Permalink
Revert change to server window update
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Aug 9, 2019
1 parent b4e0cd0 commit ceb3811
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Driver/Http2Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ private function parser(string $settings = null): \Generator
$this->writeFrame(\pack("N", $increment), self::WINDOW_UPDATE, self::NOFLAG, $id);
}

if ($this->serverWindow <= 0) {
if ($this->serverWindow <= $maxBodySize >> 1) {
$increment = \max($stream->serverWindow, $maxBodySize);
$this->serverWindow += $increment;

Expand Down

0 comments on commit ceb3811

Please sign in to comment.