use of cz.msebera.android.httpclient.params.HttpParams in project android-async-http by loopj.
the class AsyncHttpClient method setResponseTimeout.
/**
* Set response timeout limit (milliseconds). By default, this is set to
* 10 seconds.
*
* @param value Response timeout in milliseconds, minimal value is 1000 (1 second).
*/
public void setResponseTimeout(int value) {
responseTimeout = value < 1000 ? DEFAULT_SOCKET_TIMEOUT : value;
final HttpParams httpParams = httpClient.getParams();
HttpConnectionParams.setSoTimeout(httpParams, responseTimeout);
}
Aggregations