# HG changeset patch # User Sergey Kandaurov # Date 1447447878 -10800 # Node ID 37396c3bc09791a7621bc975b20c1d07e032fbbd # Parent d0a3444c21a68f558d40d966afb41cb69df3b998 Tests: do not break h2.t on incomplete frame header received. diff --git a/h2.t b/h2.t --- a/h2.t +++ b/h2.t @@ -3048,7 +3048,7 @@ sub h2_read { while (1) { $buf = raw_read($s, $buf, 9); - last unless length $buf; + last if length $buf < 9; my $length = unpack_length($buf); my $type = unpack('x3C', $buf);