Mercurial > hg > nginx-tests
changeset 995:35739834ecd9
Tests: fixed HTTP/2 GOAWAY test for connection with active stream.
Read response data before quitting a worker as otherwise further data, such
as a GOAWAY frame, could not be written to the socket, notably on Solaris.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 26 Jul 2016 20:39:11 +0300 |
parents | 345a655ef643 |
children | ec9b99d3e22e |
files | h2.t |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/h2.t +++ b/h2.t @@ -1098,7 +1098,8 @@ undef $grace4; $s->read(all => [{ sid => $sid, fin => 1 }]); my $active = Test::Nginx::HTTP2->new(port(8086)); -$active->new_stream({ path => '/tbig.html' }); +$sid = $active->new_stream({ path => '/t1.html' }); +$active->read(all => [{ sid => $sid, length => 2**16 - 1 }]); $t->stop();