ds062692 19 Posted April 8, 2014 Report Share Posted April 8, 2014 I have a bot that scans a website for certain links at a predefined time. During that time the site comes under heavy traffic. The way the bot works is that if a certain link is not there it does another get request. Currently there is no timeout. Would it be advantageous to set the timeout to 1-2 seconds instead of leaving the timeout field blank? Thanks Quote Link to post Share on other sites
the_way 52 Posted April 9, 2014 Report Share Posted April 9, 2014 the wait for element loaded and wait for page loaded options allow a time out to be for example, 30 seconds waiting, but if the element shows up before then the program will continue without waiting any longer. Does that sound like what you need? Quote Link to post Share on other sites
Ptrick125 45 Posted April 9, 2014 Report Share Posted April 9, 2014 If you set a timeout, the bot will pass on to the next command after the timeout runs out Quote Link to post Share on other sites
a2mateit 395 Posted April 10, 2014 Report Share Posted April 10, 2014 I have a bot that scans a website for certain links at a predefined time. During that time the site comes under heavy traffic. The way the bot works is that if a certain link is not there it does another get request. Currently there is no timeout. Would it be advantageous to set the timeout to 1-2 seconds instead of leaving the timeout field blank? Thanks I believe the timeout by default is 30 seconds. (it is in ubot, but not sure if it is for aymens http plug in) So if you don't set a timeout, it will wait for 30 seconds before moving to the next item. Where as, if you had a timeout of say 5 seconds it will only wait 5 seconds before moving on. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.