comparison h2_max_requests.t @ 1652:21f511a7f5c3

Tests: compatibility with http2_max_requests removal.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 10 Feb 2021 15:13:22 +0300
parents 3afb634f287d
children 22e0133d68b4
comparison
equal deleted inserted replaced
1651:a78eedc39484 1652:21f511a7f5c3
41 server { 41 server {
42 listen 127.0.0.1:8080 http2 sndbuf=1m; 42 listen 127.0.0.1:8080 http2 sndbuf=1m;
43 server_name localhost; 43 server_name localhost;
44 44
45 http2_max_requests 2; 45 http2_max_requests 2;
46 keepalive_requests 2;
46 47
47 location / { } 48 location / { }
48 } 49 }
49 } 50 }
50 51
51 EOF 52 EOF
52 53
53 $t->write_file('index.html', 'SEE-THAT' x 50000); 54 $t->write_file('index.html', 'SEE-THAT' x 50000);
55
56 # suppress deprecation warning
57
58 open OLDERR, ">&", \*STDERR; close STDERR;
54 $t->run()->plan(10); 59 $t->run()->plan(10);
60 open STDERR, ">&", \*OLDERR;
55 61
56 ############################################################################### 62 ###############################################################################
57 63
58 my $s = Test::Nginx::HTTP2->new(); 64 my $s = Test::Nginx::HTTP2->new();
59 65