frankthetank7254 / feral

4 stars 13 forks source link

Timeout after 10 seconds to speed up the test on slow routes #9

Open linearray opened 8 years ago

linearray commented 8 years ago

This should also provide some pain relief for #8

linearray commented 8 years ago

I should add that this does of course still calculate the transfer speed within those ten seconds. It just doesn't necessarily download the whole file, which can take minutes and seems unnecessary.

frankthetank7254 commented 8 years ago

i think 10 seconds may be way too low for many users. I know for some people with slower connections, many of the routes are slow, and they need the script to run for quite a while to get good results. (for those people, smaller test files may be a better answer, but I can only use what I'm given :)

thanks for your idea!

toxicantidote commented 8 years ago

I'd support this idea using the max-time option for curl. Maybe set it to something a bit longer (e..g 30 seconds) or make it configurable.