Mercurial > hg > nginx-tests
comparison h2.t @ 707:01e5d5717815
Tests: removed now superfluous output_buffers from HTTP/2 tests.
The default value has been changed in nginx.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 22 Sep 2015 17:52:18 +0300 |
parents | fc2b0a6044f2 |
children | 649af6069976 |
comparison
equal
deleted
inserted
replaced
706:875f9c2528fc | 707:01e5d5717815 |
---|---|
50 http { | 50 http { |
51 %%TEST_GLOBALS_HTTP%% | 51 %%TEST_GLOBALS_HTTP%% |
52 | 52 |
53 proxy_cache_path %%TESTDIR%%/cache keys_zone=NAME:1m; | 53 proxy_cache_path %%TESTDIR%%/cache keys_zone=NAME:1m; |
54 limit_conn_zone $binary_remote_addr zone=conn:1m; | 54 limit_conn_zone $binary_remote_addr zone=conn:1m; |
55 output_buffers 2 16k; | |
56 | 55 |
57 server { | 56 server { |
58 listen 127.0.0.1:8080 http2; | 57 listen 127.0.0.1:8080 http2; |
59 listen 127.0.0.1:8081; | 58 listen 127.0.0.1:8081; |
60 listen 127.0.0.1:8082 proxy_protocol http2; | 59 listen 127.0.0.1:8082 proxy_protocol http2; |
1024 $frames = h2_read($sess); | 1023 $frames = h2_read($sess); |
1025 is(@$frames, 0, 'iws - updated stream window'); | 1024 is(@$frames, 0, 'iws - updated stream window'); |
1026 | 1025 |
1027 h2_window($sess, 2**16); | 1026 h2_window($sess, 2**16); |
1028 $frames = h2_read($sess, all => [{ sid => $sid, fin => 1 }]); | 1027 $frames = h2_read($sess, all => [{ sid => $sid, fin => 1 }]); |
1029 | |
1030 # with the default output_buffers, the remain data would be split | |
1031 # on buffers boundary into separate data frames | |
1032 | 1028 |
1033 @data = grep { $_->{type} eq "DATA" } @$frames; | 1029 @data = grep { $_->{type} eq "DATA" } @$frames; |
1034 my $sum = eval join '+', map { $_->{length} } @data; | 1030 my $sum = eval join '+', map { $_->{length} } @data; |
1035 is($sum, 81, 'iws - updated connection window'); | 1031 is($sum, 81, 'iws - updated connection window'); |
1036 | 1032 |