From bc2091784011882348a70159da31ad578ef6e7b3 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Wed, 4 Nov 2020 13:41:40 +0300 Subject: [PATCH] Change the default for max_goroutines #2257 --- internal/dnsforward/dnsforward.go | 3 --- internal/home/config.go | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/dnsforward/dnsforward.go b/internal/dnsforward/dnsforward.go index cf39a5c0..eb0e421d 100644 --- a/internal/dnsforward/dnsforward.go +++ b/internal/dnsforward/dnsforward.go @@ -185,9 +185,6 @@ func (s *Server) Prepare(config *ServerConfig) error { return fmt.Errorf("DNS: invalid custom blocking IP address specified") } } - if s.conf.MaxGoroutines == 0 { - s.conf.MaxGoroutines = 50 - } } // Set default values in the case if nothing is configured diff --git a/internal/home/config.go b/internal/home/config.go index 4728c2e3..5499eb61 100644 --- a/internal/home/config.go +++ b/internal/home/config.go @@ -120,6 +120,7 @@ var config = configuration{ Ratelimit: 20, RefuseAny: true, AllServers: false, + MaxGoroutines: 100, // maximum concurrent queries }, FilteringEnabled: true, // whether or not use filter lists FiltersUpdateIntervalHours: 24,