# HG changeset patch # User Sergey Kandaurov # Date 1454425971 -10800 # Node ID 6a401b5fa812cb9f4760e2741a463fe680a76451 # Parent ecffe6c23a141ef4b50ebd51c6da976484ee2749 Tests: check timed out HTTP/2 streams for proper RST_STREAM code. diff --git a/h2.t b/h2.t --- a/h2.t +++ b/h2.t @@ -32,7 +32,7 @@ plan(skip_all => 'IO::Socket::SSL too ol my $t = Test::Nginx->new()->has(qw/http http_ssl http_v2 proxy cache/) ->has(qw/limit_conn rewrite realip shmem/) - ->has_daemon('openssl')->plan(302); + ->has_daemon('openssl')->plan(304); # Some systems may have also a bug in not treating zero writev iovcnt as EINVAL @@ -1533,6 +1533,7 @@ local $TODO = 'not yet'; ($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames; ok($frame, 'client header timeout'); +is($frame->{code}, 1, 'client header timeout - protocol error'); } @@ -1554,6 +1555,7 @@ local $TODO = 'not yet'; ($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames; ok($frame, 'client body timeout'); +is($frame->{code}, 1, 'client body timeout - protocol error'); }