From 6c0c154aa571bf613b80de941c12dafee18780f8 Mon Sep 17 00:00:00 2001 From: des Date: Mon, 20 Aug 2007 11:08:07 +0000 Subject: [PATCH] Wait longer for Varnish to start. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1890 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-tools/regress/lib/Varnish/Test/Varnish.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/varnish-tools/regress/lib/Varnish/Test/Varnish.pm b/varnish-tools/regress/lib/Varnish/Test/Varnish.pm index e1eca1ad..19f7bc25 100644 --- a/varnish-tools/regress/lib/Varnish/Test/Varnish.pm +++ b/varnish-tools/regress/lib/Varnish/Test/Varnish.pm @@ -136,13 +136,13 @@ sub new($$;$) { $self->{'mux'}->add($self->{'stderr'}); $self->{'mux'}->set_callback_object($self, $self->{'stderr'}); - # Wait up to 0.5 seconds for Varnish to accept our connection + # Wait up to 5 seconds for Varnish to accept our connection # on the management port - for (my $i = 0; $i < 5; ++$i) { + for (my $i = 0; $i < 10; ++$i) { last if $self->{'socket'} = IO::Socket::INET-> new(Type => SOCK_STREAM, PeerAddr => $engine->{'config'}->{'telnet_address'}); - select(undef, undef, undef, 0.1); + select(undef, undef, undef, 0.5); } if (!defined($self->{'socket'})) { kill(15, delete $self->{'pid'}); -- 2.39.5