I think you can do

Jsoup.connect("...").timeout(10 * 1000).get();

which sets timeout to 10s.