Mercurial > hg > nginx-tests
diff proxy_chunked.t @ 295:6fe0459b6668
Tests: eliminate startup races in proxy and fastcgi tests.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sat, 08 Jun 2013 07:02:11 +0400 |
parents | 6a0d934950bc |
children | f02dac68d584 |
line wrap: on
line diff
--- a/proxy_chunked.t +++ b/proxy_chunked.t @@ -66,7 +66,7 @@ EOF '<!--#include virtual="/" set="one" --><!--#echo var="one" -->'); $t->run_daemon(\&http_chunked_daemon); -$t->run(); +$t->run()->waitforsocket('127.0.0.1:8081'); ############################################################################### @@ -85,6 +85,8 @@ sub http_chunked_daemon { ) or die "Can't create listening socket: $!\n"; + local $SIG{PIPE} = 'IGNORE'; + while (my $client = $server->accept()) { $client->autoflush(1);