curl has a "connect timeout" option:
--connect-timeout <seconds>
If your "tool" is a script, you could manually edit that into there. But http://unix.stackexchange.com/a/148926/77959https://unix.stackexchange.com/a/148926/77959 is even better - edit the curl-config!