Mercurial > hg > nginx-tests
diff h2.t @ 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 | eb49d29d5447 |
children | 3c5d3b384d3f |
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();