How to fix "The operation timed out" exception?
<p>I have following code:</p>

<pre><code>        List&lt;SimpleElement&gt; list = null;
        try {

            Elements elements=Jsoup.connect(STATE_URL).get().getElementsByTag("Settings");
            elements=elements.get(0).getElementsByTag("Areas");

            if (elements.size()==0) {
                return null;
            }

            list=new ArrayList&lt;SimpleElement&gt;();
            for (Element element:elements) {

                SimpleElement state=new State(element.attr("state"));
                list.add(state);
            }

            return list;
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
            Log.e("exception", e.getMessage());
            return null;
        }
</code></pre>

<p>I.e. I use JSoup library for parsing JSON text from some web-server. But sometimes I get "The operation timed out" exception. How can I fix? May I change the value for "timed out" delay of not? </p>
