diff --git a/src/Connection/Internal/Http2ConnectionProcessor.php b/src/Connection/Internal/Http2ConnectionProcessor.php index 2bb5c904..3bf6256d 100644 --- a/src/Connection/Internal/Http2ConnectionProcessor.php +++ b/src/Connection/Internal/Http2ConnectionProcessor.php @@ -835,7 +835,7 @@ public function handleData(int $streamId, string $data): void $stream->received += $length; $stream->bufferSize += $length; - if ($stream->received >= $stream->request->getBodySizeLimit()) { + if ($stream->request->getBodySizeLimit() > 0 && $stream->received >= $stream->request->getBodySizeLimit()) { $this->handleStreamException(new Http2StreamException( "Body size limit exceeded", $streamId,