# HG changeset patch # User Sergey Kandaurov # Date 1469554751 -10800 # Node ID 35739834ecd9ae45739a56a8aa9255d705df9d15 # Parent 345a655ef643f7a57c9d6107b45dfc67fd584167 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. diff --git a/h2.t b/h2.t --- 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();