From a6715616fbef8491cebea29d2fd739d528f9aae6 Mon Sep 17 00:00:00 2001 From: Urban Guacamole Date: Sun, 19 Jul 2020 22:38:46 +0200 Subject: [PATCH] Fix DoS if refreshing of matview takes too long Refreshing the view after many changes (such as the 8 million new torrents in 2.0) can take, if the disk is a bottleneck, take longer than 60 min. --- crawl-rss/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crawl-rss/main.go b/crawl-rss/main.go index cc821d4..22cf513 100644 --- a/crawl-rss/main.go +++ b/crawl-rss/main.go @@ -45,7 +45,7 @@ func main() { } } i++ - go refresh(db) + refresh(db) time.Sleep(time.Minute * 60) } }