From d123f7c58a784d4c41bcb870f18850aad1ddbfc7 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Fri, 11 Nov 2011 18:04:38 +0100 Subject: [PATCH] [entropy.tools] raise _locate_edb() size threshold to 500Mb (due to xonotic-data) --- lib/entropy/tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/entropy/tools.py b/lib/entropy/tools.py index 8d8228876..259f4f1b6 100644 --- a/lib/entropy/tools.py +++ b/lib/entropy/tools.py @@ -1544,7 +1544,8 @@ def _locate_edb(fileobj): raw_db_tag = const_convert_to_rawstring(db_tag) db_tag_len = len(db_tag) # NOTE: it was 30Mb, but app-doc/php-docs db size was 31MB - give_up_threshold = 1024000 * 90 # 90Mb + # xonotic-data wants more, raise to 500Mb and forget + give_up_threshold = 1024000 * 500 # 500Mb # cannot index a bytes object in Python3, it returns int ! entry_point = const_convert_to_rawstring(db_tag[::-1][0]) max_read_len = 8