# HG changeset patch # User Sergey Kandaurov # Date 1518160274 -10800 # Node ID 8a88c0d6f80a762ca583be1d95e5793075ab4ce6 # Parent da2ad1d72bb6f701ff6430d50504f83f3e37605e Tests: TODO HTTP/2 server push flow control tests with "aio on". diff --git a/h2_server_push.t b/h2_server_push.t --- a/h2_server_push.t +++ b/h2_server_push.t @@ -267,6 +267,9 @@ is(grep({ $_->{type} eq "PUSH_PROMISE" } $frames = $s->read(all => [{ type => 'PUSH_PROMISE' }], wait => 0.2); is(grep({ $_->{type} eq "PUSH_PROMISE" } @$frames), 0, 'max pushes disabled'); +TODO: { +local $TODO = 'not yet' if $t->read_file('nginx.conf') =~ /aio on/; + # server push flow control & rst $s = Test::Nginx::HTTP2->new(); @@ -303,9 +306,14 @@ push @$frames, @{ $s->read(all => [{ sid is($frame->{length}, 1, 'pushed response flow control'); is($frame->{flags}, 1, 'pushed response END_STREAM'); +} + ($frame) = grep { $_->{type} eq "DATA" && $_->{sid} == 4 } @$frames; ok(!$frame, 'rst pushed stream'); +TODO: { +local $TODO = 'not yet' if $t->read_file('nginx.conf') =~ /aio on/; + # priority $s = Test::Nginx::HTTP2->new(); @@ -336,6 +344,8 @@ is(join(' ', map { $_->{sid} } @data), " @data = grep { $_->{type} eq "DATA" } @$frames; is(join(' ', map { $_->{sid} } @data), "2 4", 'priority 2'); +} + # http2_max_concurrent_pushes $s = Test::Nginx::HTTP2->new(port(8082));