From 8749a3c5b6c365f517d763b7958fd4e6b7ff0b22 Mon Sep 17 00:00:00 2001 From: poire-z Date: Sat, 3 Aug 2019 11:45:42 +0200 Subject: [PATCH] Wikipedia download: increase timeout --- frontend/ui/wikipedia.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/ui/wikipedia.lua b/frontend/ui/wikipedia.lua index b210fa01f..731dcacb6 100644 --- a/frontend/ui/wikipedia.lua +++ b/frontend/ui/wikipedia.lua @@ -255,7 +255,10 @@ function Wikipedia:loadPage(text, lang, page_type, plain) error(self.dismissed_error_code) -- "Interrupted by user" end else - local timeout, maxtime = 10, 60 + -- Smaller timeout than when we have a trap_widget because we are + -- blocking without one (but 20s may be needed to fetch the main HTML + -- page of big articles when making an EPUB). + local timeout, maxtime = 20, 60 success, content = getUrlContent(built_url, timeout, maxtime) end if not success then