comparison h2_proxy_request_buffering.t @ 1083:d0523391deb9

Tests: removed TODO for HTTP/2 fix merged in stable.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 30 Nov 2016 00:05:31 +0300
parents daf3fb13a80d
children 766bcbb632ee
comparison
equal deleted inserted replaced
1082:d0edeb90c0ab 1083:d0523391deb9
167 is($f->{http_end}(), 200, 'chunked split - response'); 167 is($f->{http_end}(), 200, 'chunked split - response');
168 168
169 # unbuffered request body, chunked transfer-encoding 169 # unbuffered request body, chunked transfer-encoding
170 # client sends partial DATA frame and closes connection 170 # client sends partial DATA frame and closes connection
171 171
172 TODO: {
173 todo_skip 'use-after-free', 1 unless $ENV{TEST_NGINX_UNSAFE}
174 or $t->has_version('1.11.2');
175
176 my $s = Test::Nginx::HTTP2->new(); 172 my $s = Test::Nginx::HTTP2->new();
177 my $s2 = Test::Nginx::HTTP2->new(); 173 my $s2 = Test::Nginx::HTTP2->new();
178 174
179 $s->new_stream({ path => '/abort', body_more => 1 }); 175 $s->new_stream({ path => '/abort', body_more => 1 });
180 $s->h2_body('TEST', { split => [ 9 ], abort => 1 }); 176 $s->h2_body('TEST', { split => [ 9 ], abort => 1 });
181 177
182 close $s->{socket}; 178 close $s->{socket};
183 179
184 $s2->h2_ping('PING'); 180 $s2->h2_ping('PING');
185 isnt(@{$s2->read()}, 0, 'chunked abort'); 181 isnt(@{$s2->read()}, 0, 'chunked abort');
186
187 }
188 182
189 ############################################################################### 183 ###############################################################################
190 184
191 sub get_body { 185 sub get_body {
192 my ($url, %extra) = @_; 186 my ($url, %extra) = @_;