You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you put these line you are actually setting file read time out for the connection so if the read responce doesn't come in 1 sec this will throw time out exception. Please check your connection speed
URL url = new URL(task.url);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setConnectTimeout(1000);
connection.setReadTimeout(1000);
in AsyncWorker.class having above code throws socket time out exception
and download stops after few moments
whenever i made below changes in above code it works well sometimes and after sometime again facing same problem
URL url = new URL(task.url);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setConnectTimeout(60000);
connection.setReadTimeout(60000);
Using MotoG3 for testing device android MarshMallow 6.0.1
The text was updated successfully, but these errors were encountered: