comparison h2.t @ 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 5d258aa5ebc5
children 85e368105c8b
comparison
equal deleted inserted replaced
678:99233cfefbbe 679:b60c1a207675
1725 1725
1726 my $stream = unpack "x5 B32", $buf; 1726 my $stream = unpack "x5 B32", $buf;
1727 substr($stream, 0, 1) = 0; 1727 substr($stream, 0, 1) = 0;
1728 $stream = unpack("N", pack("B32", $stream)); 1728 $stream = unpack("N", pack("B32", $stream));
1729 1729
1730 $buf = raw_read($s, $buf, $length); 1730 $buf = raw_read($s, $buf, $length + 9);
1731 last unless length $buf; 1731 last unless length $buf;
1732 1732
1733 $buf = substr($buf, 9); 1733 $buf = substr($buf, 9);
1734 1734
1735 my $frame = $cframe{$type}{value}($sess, $buf, $length); 1735 my $frame = $cframe{$type}{value}($sess, $buf, $length);