changeset 679:b60c1a207675

Tests: fixed HTTP/2 tests with large frames. Compensate for an already read frame header.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 08 Sep 2015 14:58:56 +0300
parents 99233cfefbbe
children 85e368105c8b
files h2.t
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h2.t
+++ b/h2.t
@@ -1727,7 +1727,7 @@ sub h2_read {
 		substr($stream, 0, 1) = 0;
 		$stream = unpack("N", pack("B32", $stream));
 
-		$buf = raw_read($s, $buf, $length);
+		$buf = raw_read($s, $buf, $length + 9);
 		last unless length $buf;
 
 		$buf = substr($buf, 9);