comparison h2.t @ 1290:5ac4aae1a740

Tests: removed TODO for HTTP/2 duplicate settings. It's not broken in 1.12 but actually a regression of 645ed7112a01 (1.13.2).
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 21 Feb 2018 20:32:07 +0300
parents d800b5ca9783
children 97c8280de681
comparison
equal deleted inserted replaced
1289:1e00ba2882cb 1290:5ac4aae1a740
770 $frames = $s->read(all => [{ sid => $sid, length => 2**16 - 1 }]); 770 $frames = $s->read(all => [{ sid => $sid, length => 2**16 - 1 }]);
771 @data = grep { $_->{type} eq "DATA" } @$frames; 771 @data = grep { $_->{type} eq "DATA" } @$frames;
772 $sum = eval join '+', map { $_->{length} } @data; 772 $sum = eval join '+', map { $_->{length} } @data;
773 is($sum, 2**16 - 1, 'iws duplicate - default stream window'); 773 is($sum, 2**16 - 1, 'iws duplicate - default stream window');
774 774
775 TODO: {
776 local $TODO = 'not yet' unless $t->has_version('1.13.9');
777
778 # this should effect in extra stream window octect 775 # this should effect in extra stream window octect
779 # $s->h2_settings(0, 0x4 => 42, 0x4 => 2**16); 776 # $s->h2_settings(0, 0x4 => 42, 0x4 => 2**16);
780 { 777 {
781 local $SIG{PIPE} = 'IGNORE'; 778 local $SIG{PIPE} = 'IGNORE';
782 syswrite($s->{socket}, pack("x2C2x5nNnN", 12, 0x4, 4, 42, 4, 2**16)); 779 syswrite($s->{socket}, pack("x2C2x5nNnN", 12, 0x4, 4, 42, 4, 2**16));
793 790
794 $frames = $s->read(all => [{ sid => $sid, length => 80 }]); 791 $frames = $s->read(all => [{ sid => $sid, length => 80 }]);
795 @data = grep { $_->{type} eq "DATA" } @$frames; 792 @data = grep { $_->{type} eq "DATA" } @$frames;
796 $sum = eval join '+', map { $_->{length} } @data; 793 $sum = eval join '+', map { $_->{length} } @data;
797 is($sum, 80, 'iws duplicate - updated stream window 2'); 794 is($sum, 80, 'iws duplicate - updated stream window 2');
798
799 }
800 795
801 # probe for negative available space in a flow control window 796 # probe for negative available space in a flow control window
802 797
803 # 6.9.2. Initial Flow-Control Window Size 798 # 6.9.2. Initial Flow-Control Window Size
804 # A change to SETTINGS_INITIAL_WINDOW_SIZE can cause the available 799 # A change to SETTINGS_INITIAL_WINDOW_SIZE can cause the available