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	Mon Sep 07 14:09:51 2015 +0300
+++ b/h2.t	Tue Sep 08 14:58:56 2015 +0300
@@ -1727,7 +1727,7 @@
 		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);