mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-06-16 03:39:56 -04:00
Add timeout for Http request
This commit is contained in:
@@ -83,6 +83,8 @@ public class HttpDownloader extends Downloader {
|
||||
} else {
|
||||
connection = (HttpURLConnection) sourceUrl.openConnection();
|
||||
}
|
||||
connection.setConnectTimeout(10000);
|
||||
connection.setReadTimeout(40000);
|
||||
}
|
||||
|
||||
protected void doDownload() throws IOException, InterruptedException {
|
||||
|
||||
Reference in New Issue
Block a user