clamav: Allow downloads to take up to 10 minutes

Message ID 20191125110958.14984-1-michael.tremer@ipfire.org
State Accepted
Commit 4775d54ba6ebca19dc498fd40d881b6eabd3ecb3
Headers
Series clamav: Allow downloads to take up to 10 minutes |

Commit Message

Michael Tremer Nov. 25, 2019, 11:09 a.m. UTC
  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@tfitzgeorge.me.uk>
Fixes: #12246
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 config/clamav/freshclam.conf | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Peter Müller Nov. 25, 2019, 9:10 p.m. UTC | #1
Reviewed-by: Peter Müller <peter.mueller@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@tfitzgeorge.me.uk>
> Fixes: #12246
> Signed-off-by: Michael Tremer <michael.tremer@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
>  
>
  

Patch

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