* [PATCH] clamav: Allow downloads to take up to 10 minutes
@ 2019-11-25 11:09 Michael Tremer
2019-11-25 21:10 ` Peter Müller
0 siblings, 1 reply; 2+ messages in thread
From: Michael Tremer @ 2019-11-25 11:09 UTC (permalink / raw)
To: development
[-- Attachment #1: Type: text/plain, Size: 824 bytes --]
freshclam did not have a receive timeout set and a default of
60s was used. That causes that the large main database cannot
be downloaded over a line with a 16 MBit/s downlink.
This patch increases that timeout and should allow a successful
download on slower connections, too.
Suggested-by: Tim Fitzgeorge <ipfb(a)tfitzgeorge.me.uk>
Fixes: #12246
Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
---
config/clamav/freshclam.conf | 1 +
1 file changed, 1 insertion(+)
diff --git a/config/clamav/freshclam.conf b/config/clamav/freshclam.conf
index d4131e574..28be8fec1 100644
--- a/config/clamav/freshclam.conf
+++ b/config/clamav/freshclam.conf
@@ -7,6 +7,7 @@ LogSyslog yes
PidFile /var/run/clamav/freshclam.pid
DatabaseMirror database.clamav.net
+ReceiveTimeout 600
ScriptedUpdates yes
--
2.20.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] clamav: Allow downloads to take up to 10 minutes
2019-11-25 11:09 [PATCH] clamav: Allow downloads to take up to 10 minutes Michael Tremer
@ 2019-11-25 21:10 ` Peter Müller
0 siblings, 0 replies; 2+ messages in thread
From: Peter Müller @ 2019-11-25 21:10 UTC (permalink / raw)
To: development
[-- Attachment #1: Type: text/plain, Size: 924 bytes --]
Reviewed-by: Peter Müller <peter.mueller(a)ipfire.org>
> freshclam did not have a receive timeout set and a default of
> 60s was used. That causes that the large main database cannot
> be downloaded over a line with a 16 MBit/s downlink.
>
> This patch increases that timeout and should allow a successful
> download on slower connections, too.
>
> Suggested-by: Tim Fitzgeorge <ipfb(a)tfitzgeorge.me.uk>
> Fixes: #12246
> Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>
> ---
> config/clamav/freshclam.conf | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/config/clamav/freshclam.conf b/config/clamav/freshclam.conf
> index d4131e574..28be8fec1 100644
> --- a/config/clamav/freshclam.conf
> +++ b/config/clamav/freshclam.conf
> @@ -7,6 +7,7 @@ LogSyslog yes
> PidFile /var/run/clamav/freshclam.pid
>
> DatabaseMirror database.clamav.net
> +ReceiveTimeout 600
>
> ScriptedUpdates yes
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-25 21:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-25 11:09 [PATCH] clamav: Allow downloads to take up to 10 minutes Michael Tremer
2019-11-25 21:10 ` Peter Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox