Mercurial > hg > nginx-tests
comparison 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 |
comparison
equal
deleted
inserted
replaced
895:894e142ebdf8 | 896:48d277065309 |
---|---|
454 | 454 |
455 return $ctx if $extra{pure}; | 455 return $ctx if $extra{pure}; |
456 | 456 |
457 # update windows, if any | 457 # update windows, if any |
458 | 458 |
459 h2_read($ctx, all => [ | 459 my $frames = h2_read($ctx, all => [ |
460 { type => 'WINDOW_UPDATE' }, | 460 { type => 'WINDOW_UPDATE' }, |
461 { type => 'SETTINGS'} | 461 { type => 'SETTINGS'} |
462 ]); | 462 ]); |
463 | |
464 # 6.5.3. Settings Synchronization | |
465 | |
466 if (grep { $_->{type} eq "SETTINGS" && $_->{flags} == 0 } @$frames) { | |
467 h2_settings($ctx, 1); | |
468 } | |
463 | 469 |
464 return $ctx; | 470 return $ctx; |
465 } | 471 } |
466 | 472 |
467 sub new_socket { | 473 sub new_socket { |