comparison h2_proxy_max_temp_file_size.t @ 1986:11463d379570

Tests: reworked HTTP/2 tests to use "http2 on".
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 04 Jun 2024 05:08:02 +0300
parents 236d038dc04a
children
comparison
equal deleted inserted replaced
1985:b5e2609d34a3 1986:11463d379570
36 36
37 http { 37 http {
38 %%TEST_GLOBALS_HTTP%% 38 %%TEST_GLOBALS_HTTP%%
39 39
40 server { 40 server {
41 listen 127.0.0.1:8080 http2; 41 listen 127.0.0.1:8080;
42 server_name localhost; 42 server_name localhost;
43
44 http2 on;
43 45
44 proxy_buffer_size 4k; 46 proxy_buffer_size 4k;
45 proxy_buffers 8 4k; 47 proxy_buffers 8 4k;
46 48
47 location / { 49 location / {
64 } 66 }
65 67
66 EOF 68 EOF
67 69
68 $t->write_file('1', 'X' x (1024 * 1024)); 70 $t->write_file('1', 'X' x (1024 * 1024));
69
70 # suppress deprecation warning
71
72 open OLDERR, ">&", \*STDERR; close STDERR;
73 $t->run(); 71 $t->run();
74 open STDERR, ">&", \*OLDERR;
75 72
76 ############################################################################### 73 ###############################################################################
77 74
78 # test that the response is wholly proxied when all event pipe buffers are full 75 # test that the response is wholly proxied when all event pipe buffers are full
79 76