r1890 - trunk/varnish-tools/regress/lib/Varnish/Test

des at projects.linpro.no des at projects.linpro.no
Mon Aug 20 13:08:08 CEST 2007


Author: des
Date: 2007-08-20 13:08:07 +0200 (Mon, 20 Aug 2007)
New Revision: 1890

Modified:
   trunk/varnish-tools/regress/lib/Varnish/Test/Varnish.pm
Log:
Wait longer for Varnish to start.


Modified: trunk/varnish-tools/regress/lib/Varnish/Test/Varnish.pm
===================================================================
--- trunk/varnish-tools/regress/lib/Varnish/Test/Varnish.pm	2007-08-20 11:05:48 UTC (rev 1889)
+++ trunk/varnish-tools/regress/lib/Varnish/Test/Varnish.pm	2007-08-20 11:08:07 UTC (rev 1890)
@@ -136,13 +136,13 @@
     $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'});




More information about the varnish-commit mailing list