comparison h2_proxy_request_buffering.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
38 38
39 http { 39 http {
40 %%TEST_GLOBALS_HTTP%% 40 %%TEST_GLOBALS_HTTP%%
41 41
42 server { 42 server {
43 listen 127.0.0.1:8080 http2; 43 listen 127.0.0.1:8080;
44 listen 127.0.0.1:8082; 44 listen 127.0.0.1:8082;
45 server_name localhost; 45 server_name localhost;
46
47 http2 on;
46 48
47 location / { 49 location / {
48 proxy_request_buffering off; 50 proxy_request_buffering off;
49 proxy_pass http://127.0.0.1:8081/; 51 proxy_pass http://127.0.0.1:8081/;
50 client_body_buffer_size 1k; 52 client_body_buffer_size 1k;
63 } 65 }
64 } 66 }
65 67
66 EOF 68 EOF
67 69
68 # suppress deprecation warning
69
70 open OLDERR, ">&", \*STDERR; close STDERR;
71 $t->run(); 70 $t->run();
72 open STDERR, ">&", \*OLDERR;
73 71
74 ############################################################################### 72 ###############################################################################
75 73
76 # unbuffered request body 74 # unbuffered request body
77 75