Mercurial > hg > nginx-tests
comparison h2.t @ 782:37396c3bc097
Tests: do not break h2.t on incomplete frame header received.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 13 Nov 2015 23:51:18 +0300 |
parents | d0a3444c21a6 |
children | dba6660b31db |
comparison
equal
deleted
inserted
replaced
781:d0a3444c21a6 | 782:37396c3bc097 |
---|---|
3046 my $s = $sess->{socket}; | 3046 my $s = $sess->{socket}; |
3047 my $buf = ''; | 3047 my $buf = ''; |
3048 | 3048 |
3049 while (1) { | 3049 while (1) { |
3050 $buf = raw_read($s, $buf, 9); | 3050 $buf = raw_read($s, $buf, 9); |
3051 last unless length $buf; | 3051 last if length $buf < 9; |
3052 | 3052 |
3053 my $length = unpack_length($buf); | 3053 my $length = unpack_length($buf); |
3054 my $type = unpack('x3C', $buf); | 3054 my $type = unpack('x3C', $buf); |
3055 my $flags = unpack('x4C', $buf); | 3055 my $flags = unpack('x4C', $buf); |
3056 | 3056 |