Skip to content

Commit

Permalink
Use Request size limits
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Aug 20, 2019
1 parent 33f84bc commit 4391301
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Connection/Http2Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ private function request(Request $request, CancellationToken $token): Promise
$this->streams[$id] = $stream = new Http2Stream(
self::DEFAULT_WINDOW_SIZE,
$this->initialWindowSize,
self::DEFAULT_MAX_HEADER_SIZE, // $request->getMaxHeaderSize()
self::DEFAULT_MAX_BODY_SIZE // $request->getMaxBodySize()
$request->getHeaderSizeLimit(),
$request->getBodySizeLimit()
);

$stream->request = $request;
Expand Down Expand Up @@ -713,8 +713,8 @@ private function parser(): \Generator
$this->streams[$pushedId] = $stream = new Http2Stream(
self::DEFAULT_WINDOW_SIZE,
0,
self::DEFAULT_MAX_HEADER_SIZE, // $stream->request->getMaxHeaderSize()
0
$parent->request->getHeaderSizeLimit(),
$parent->request->getBodySizeLimit()
);

$stream->parent = $parent; // Set parent stream on new stream.
Expand Down

0 comments on commit 4391301

Please sign in to comment.