![]() setSoTimeout ( httpParameters, timeoutSocket ) DefaultHttpClient httpClient = new DefaultHttpClient ( httpParameters ) HttpResponse response = httpClient. int timeoutSocket = 5000 HttpConnectionParams. setConnectionTimeout ( httpParameters, timeoutConnection ) // Set the default socket timeout (SO_TIMEOUT) // in milliseconds which is the timeout for waiting for data. int timeoutConnection = 3000 HttpConnectionParams. The default value is zero, that means the timeout is not used. HttpGet httpGet = new HttpGet ( url ) HttpParams httpParameters = new BasicHttpParams () // Set the timeout in milliseconds until a connection is established. ![]() El tiempo de espera de conexión de lanza : Socket is not connectedy el tiempo de espera de socket : The operation timed out. En mi ejemplo, se establecen dos tiempos de espera.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |