Mercurial > hg > nginx-tests
comparison h2.t @ 1649:20e0ec3b4dec
Tests: removed a duplicate HTTP/2 graceful shutdown test.
A similar (and better) test exists for GOAWAY with active streams.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 09 Feb 2021 13:50:23 +0300 |
parents | 48d8c16d48ea |
children | cdba06625d65 |
comparison
equal
deleted
inserted
replaced
1648:48d8c16d48ea | 1649:20e0ec3b4dec |
---|---|
109 server { | 109 server { |
110 listen 127.0.0.1:8084 http2; | 110 listen 127.0.0.1:8084 http2; |
111 server_name localhost; | 111 server_name localhost; |
112 | 112 |
113 client_header_timeout 1s; | 113 client_header_timeout 1s; |
114 send_timeout 1s; | |
115 } | 114 } |
116 | 115 |
117 server { | 116 server { |
118 listen 127.0.0.1:8085 http2; | 117 listen 127.0.0.1:8085 http2; |
119 server_name localhost; | 118 server_name localhost; |
1114 # graceful shutdown with stream waiting on HEADERS payload | 1113 # graceful shutdown with stream waiting on HEADERS payload |
1115 | 1114 |
1116 my $grace = Test::Nginx::HTTP2->new(port(8084)); | 1115 my $grace = Test::Nginx::HTTP2->new(port(8084)); |
1117 $grace->new_stream({ split => [ 9 ], abort => 1 }); | 1116 $grace->new_stream({ split => [ 9 ], abort => 1 }); |
1118 | 1117 |
1119 # graceful shutdown with stream waiting on WINDOW_UPDATE | |
1120 | |
1121 my $grace2 = Test::Nginx::HTTP2->new(port(8084)); | |
1122 $sid = $grace2->new_stream({ path => '/t1.html' }); | |
1123 $grace2->read(all => [{ sid => $sid, length => 2**16 - 1 }]); | |
1124 | |
1125 # graceful shutdown waiting on incomplete request body DATA frames | 1118 # graceful shutdown waiting on incomplete request body DATA frames |
1126 | 1119 |
1127 my $grace3 = Test::Nginx::HTTP2->new(port(8085)); | 1120 my $grace3 = Test::Nginx::HTTP2->new(port(8085)); |
1128 $sid = $grace3->new_stream({ path => '/proxy2/t2.html', body_more => 1 }); | 1121 $sid = $grace3->new_stream({ path => '/proxy2/t2.html', body_more => 1 }); |
1129 $grace3->h2_body('TEST', { body_more => 1 }); | 1122 $grace3->h2_body('TEST', { body_more => 1 }); |