wjdp / htmltest

:white_check_mark: Test generated HTML for problems
MIT License
325 stars 54 forks source link

Feature request: Allow retry attempts on timed out URLs #103

Open kaushalmodi opened 6 years ago

kaushalmodi commented 6 years ago

Hello,

I have been using htmltest to qualify deployment of one of my site. But recently almost every time, I get false failures like:

3:36:37 PM: www.xianmin.org on 10.23.240.10:53: read udp 10.21.62.244:57717->10.23.240.10:53: i/o timeout --- doc/examples/index.html --> https://www.xianmin.org/

and then when I visit that link myself, it works.

I deploy my site over Netlify and may be due to network loads or something, the timeouts happen almost every time.

I even increased the external timeout param from 15 (default) to 30 seconds. But that didn't help either.

So a feature request..

So..

For now, I restart the Netlify deploy and the false error doesn't happen again.. but that adds a bit of inconvenience.. to restart the deploy + wait another 4 or so minutes (first world problems).

wjdp commented 6 years ago

Makes a lot of sense, I like!

alexppg commented 4 years ago

Also it could be used with some webpages that are on flaky servers and have some requests just fail for whatever reason, even if most of them usually work.