Http-connector ConnectionTimeout

You can also do it quickly with a script task such as Replacing Http-Connector with Jsoup usage

Where the http connection made by the lib has a timeout method to control how long the http connection will remain active before timeout