Mercurial > hg > nginx-tests
comparison grpc.t @ 1653:259dfb223f9a
Tests: compatibility with http2_max_header/field_size removal.
Tests are adjusted to equally fit in limits set by both old and new ways:
http2_max_header_size / http2_max_field_size and large_client_header_buffers.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 10 Feb 2021 15:13:22 +0300 |
parents | 62a1667f60f8 |
children | 0fae67763be5 |
comparison
equal
deleted
inserted
replaced
1652:21f511a7f5c3 | 1653:259dfb223f9a |
---|---|
48 server_name localhost; | 48 server_name localhost; |
49 | 49 |
50 http2_max_field_size 128k; | 50 http2_max_field_size 128k; |
51 http2_max_header_size 128k; | 51 http2_max_header_size 128k; |
52 http2_body_preread_size 128k; | 52 http2_body_preread_size 128k; |
53 large_client_header_buffers 4 32k; | |
53 | 54 |
54 location / { | 55 location / { |
55 grpc_pass grpc://127.0.0.1:8081; | 56 grpc_pass grpc://127.0.0.1:8081; |
56 | 57 |
57 if ($arg_if) { | 58 if ($arg_if) { |
89 } | 90 } |
90 } | 91 } |
91 | 92 |
92 EOF | 93 EOF |
93 | 94 |
95 # suppress deprecation warning | |
96 | |
97 open OLDERR, ">&", \*STDERR; close STDERR; | |
94 $t->run(); | 98 $t->run(); |
99 open STDERR, ">&", \*OLDERR; | |
95 | 100 |
96 ############################################################################### | 101 ############################################################################### |
97 | 102 |
98 my $p = port(8081); | 103 my $p = port(8081); |
99 my $f = grpc(); | 104 my $f = grpc(); |