mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-20 23:07:26 -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