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

Jan Hutaƙ <[email protected]> Fri, 1 Dec 2006 11:13:06 +0100
Newsgroups gmane.comp.lib.libwww
Organization Red Hat
Message-ID <[email protected]>
--Signature=_Fri__1_Dec_2006_11_13_06_+0100_3beidBZ88Yhw22T0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

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
[email protected]        Red Hat, Inc.

--Signature=_Fri__1_Dec_2006_11_13_06_+0100_3beidBZ88Yhw22T0
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFcAA23Cu9u9IxohURAgddAJ9yGbdcSXg03Q8n/1bBUDS/eEE/OgCeOyd/
xkKO/Rca+ccM6VB0sSywI8k=
=+GG9
-----END PGP SIGNATURE-----

--Signature=_Fri__1_Dec_2006_11_13_06_+0100_3beidBZ88Yhw22T0--