protected HttpConnectionParamBean buildConnectionParams(HttpParams httpParams) { HttpConnectionParamBean connectionBean = new HttpConnectionParamBean(httpParams); connectionBean.setConnectionTimeout(getConnectTimeoutMillis());//httpParams.setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 1000L); connectionBean.setSoTimeout(getReadTimeoutMillis());//httpParams.setParameter(CoreConnectionPNames.SO_TIMEOUT, 5000L); return connectionBean; }