Limit number of image redirections to 5

This commit is contained in:
M66B 2021-02-20 16:40:27 +01:00
parent 2f8872bf03
commit 5444a63a3d
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ class ImageHelper {
Helper.getBackgroundExecutor(0, "image_n"); Helper.getBackgroundExecutor(0, "image_n");
private static final int DOWNLOAD_TIMEOUT = 15 * 1000; // milliseconds private static final int DOWNLOAD_TIMEOUT = 15 * 1000; // milliseconds
private static final int MAX_REDIRECTS = 10; private static final int MAX_REDIRECTS = 5; // https://www.freesoft.org/CIE/RFC/1945/46.htm
private static final int MAX_PROBE = 64 * 1024; // bytes private static final int MAX_PROBE = 64 * 1024; // bytes
private static final int SLOW_CONNECTION = 2 * 1024; // Kbps private static final int SLOW_CONNECTION = 2 * 1024; // Kbps