comparison worker_shutdown_timeout_h2.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
37 37
38 http { 38 http {
39 %%TEST_GLOBALS_HTTP%% 39 %%TEST_GLOBALS_HTTP%%
40 40
41 server { 41 server {
42 listen 127.0.0.1:8080 http2; 42 listen 127.0.0.1:8080;
43 server_name localhost; 43 server_name localhost;
44
45 http2 on;
44 46
45 location / { 47 location / {
46 proxy_pass http://127.0.0.1:8081; 48 proxy_pass http://127.0.0.1:8081;
47 proxy_read_timeout 5s; 49 proxy_read_timeout 5s;
48 } 50 }
49 } 51 }
50 } 52 }
51 EOF 53 EOF
52 54
53 $t->run_daemon(\&http_silent_daemon); 55 $t->run_daemon(\&http_silent_daemon);
54
55 # suppress deprecation warning
56
57 open OLDERR, ">&", \*STDERR; close STDERR;
58 $t->run(); 56 $t->run();
59 open STDERR, ">&", \*OLDERR;
60
61 $t->waitforsocket('127.0.0.1:' . port(8081)); 57 $t->waitforsocket('127.0.0.1:' . port(8081));
62 58
63 ############################################################################### 59 ###############################################################################
64 60
65 my $s = Test::Nginx::HTTP2->new(); 61 my $s = Test::Nginx::HTTP2->new();