Mercurial > hg > nginx-tests
changeset 841:6a401b5fa812
Tests: check timed out HTTP/2 streams for proper RST_STREAM code.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 02 Feb 2016 18:12:51 +0300 |
parents | ecffe6c23a14 |
children | 60b3e0cfba77 |
files | h2.t |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h2.t Tue Feb 02 17:02:00 2016 +0300 +++ b/h2.t Tue Feb 02 18:12:51 2016 +0300 @@ -32,7 +32,7 @@ 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 @@ ($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 @@ ($frame) = grep { $_->{type} eq "RST_STREAM" } @$frames; ok($frame, 'client body timeout'); +is($frame->{code}, 1, 'client body timeout - protocol error'); }