comparison h2_proxy_request_buffering_ssl.t @ 903:29aa547dd963

Tests: avoided potential hang in HTTP/2 unbuf request body tests. Made sure to close client connections.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 19 Apr 2016 14:26:04 +0300
parents 127a602f36c8
children d73bef563aea
comparison
equal deleted inserted replaced
902:3b90649691cc 903:29aa547dd963
98 or die "Can't create certificate for $name: $!\n"; 98 or die "Can't create certificate for $name: $!\n";
99 } 99 }
100 100
101 $t->run(); 101 $t->run();
102 102
103 plan(skip_all => 'no unbuffered request body') unless get_body('/chunked'); 103 my $f = get_body('/chunked');
104 plan(skip_all => 'no unbuffered request body') unless $f;
105 $f->{http_end}();
104 106
105 $t->plan(40); 107 $t->plan(40);
106 108
107 ############################################################################### 109 ###############################################################################
108
109 my ($f);
110 110
111 # unbuffered request body 111 # unbuffered request body
112 112
113 $f = get_body('/', 'content-length' => 10); 113 $f = get_body('/', 'content-length' => 10);
114 ok($f->{headers}, 'request'); 114 ok($f->{headers}, 'request');