W3C home > Mailing lists > Public > www-lib@w3.org > October to December 2006

webbot -timeout 3 -l file-l-timeout.log

From: Jan Hutař <jhutar@redhat.com>
Date: Fri, 1 Dec 2006 11:13:06 +0100
To: www-lib@w3.org
Message-Id: <20061201111306.d8527791.jhutar@redhat.com>
Hello again :)
I have another problem. Its: how to simulate timeout? I have following timeout.php script:

<?php

$timeout = 10;

sleep($timeout);
echo "We waited $timeout s.";

?>

and when running command:

webbot -n -depth 10 -prefix http://localhost.localdomain/test/ -timeout 3 -l file-l-timeout.log http://localhost.localdomain/test/index.html

I can see, that webbot is waiting 10 secs (not 3 as specified with "-timeout" option). When command ends, there is a following line in file-l-timeout.log:

...
localhost - - [Fri, 01 Dec 2006 11:02:53] GET http://localhost.localdomain/test/timeout.php 200 15
...

Will be happy for any comments.

Thanks,
Jan



--
Jan Hutar   Quality Assurance Engineer
jhutar@redhat.com        Red Hat, Inc.

Received on Friday, 1 December 2006 10:13:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:46 GMT