title: Timeout not working in AsyncTask class
body: <p>Timeout does not seem to work in async class</p>
  
  <pre><code>int timeoutConnection = 3000;
  url=urls[0].getUrl();
  HttpClient httpclient = new DefaultHttpClient();
  HttpPost httppost = new HttpPost(urls[0].getUrl());
  HttpConnectionParams.setConnectionTimeout(httppost.getParams(), timeoutConnection);
  int timeoutSocket = 3000;
  HttpConnectionParams.setSoTimeout(httppost.getParams(), timeoutSocket);
  httppost.setEntity(new UrlEncodedFormEntity(urls[0].getParameters()));
  // Execute HTTP Post Request
  HttpResponse responsePOST = httpclient.execute(httppost);
  resEntity = responsePOST.getEntity();
  response=EntityUtils.toString(resEntity);
  </code></pre>
  
  <p>Please help me how I can set time out in <code>AsyncTask</code> class?</p>