Jsoup SocketTimeoutException: Read timed out

I think you can do

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

which sets timeout to 10s.

Leave a Comment