Tests: TODO HTTP/2 server push flow control tests with "aio on".
diff --git a/h2_server_push.t b/h2_server_push.t index f74abdf..702cfaf 100644 --- a/h2_server_push.t +++ b/h2_server_push.t
@@ -267,6 +267,9 @@ $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 @@ 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 @@ @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));