Mercurial > hg > nginx-tests
comparison h2_proxy_request_buffering.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 | cb8438c28482 |
comparison
equal
deleted
inserted
replaced
902:3b90649691cc | 903:29aa547dd963 |
---|---|
59 | 59 |
60 EOF | 60 EOF |
61 | 61 |
62 $t->run(); | 62 $t->run(); |
63 | 63 |
64 plan(skip_all => 'no unbuffered request body') unless get_body('/chunked'); | 64 my $f = get_body('/chunked'); |
65 plan(skip_all => 'no unbuffered request body') unless $f; | |
66 $f->{http_end}(); | |
65 | 67 |
66 $t->plan(48); | 68 $t->plan(48); |
67 | 69 |
68 ############################################################################### | 70 ############################################################################### |
69 | |
70 my ($f); | |
71 | 71 |
72 # unbuffered request body | 72 # unbuffered request body |
73 | 73 |
74 $f = get_body('/', 'content-length' => 10); | 74 $f = get_body('/', 'content-length' => 10); |
75 ok($f->{headers}, 'request'); | 75 ok($f->{headers}, 'request'); |