Mercurial > hg > nginx-tests
diff lib/Test/Nginx/HTTP2.pm @ 896:48d277065309
Tests: emit HTTP/2 SETTINGS acknowledgement by default.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 13 Apr 2016 13:03:09 +0300 |
parents | a6abbfed42c0 |
children | 2668f30181eb |
line wrap: on
line diff
--- a/lib/Test/Nginx/HTTP2.pm +++ b/lib/Test/Nginx/HTTP2.pm @@ -456,11 +456,17 @@ sub new_session { # update windows, if any - h2_read($ctx, all => [ + my $frames = h2_read($ctx, all => [ { type => 'WINDOW_UPDATE' }, { type => 'SETTINGS'} ]); + # 6.5.3. Settings Synchronization + + if (grep { $_->{type} eq "SETTINGS" && $_->{flags} == 0 } @$frames) { + h2_settings($ctx, 1); + } + return $ctx; }