Message ID | 20191125110958.14984-1-michael.tremer@ipfire.org |
---|---|
State | Accepted |
Commit | 4775d54ba6ebca19dc498fd40d881b6eabd3ecb3 |
Headers |
Return-Path: <development-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 47M47h1PGtz43Tf for <patchwork@web04.haj.ipfire.org>; Mon, 25 Nov 2019 11:10:08 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 47M47f2C61z2fL; Mon, 25 Nov 2019 11:10:06 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 47M47d70mNz2ybF; Mon, 25 Nov 2019 11:10:05 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 47M47c46Yyz2xrw for <development@lists.ipfire.org>; Mon, 25 Nov 2019 11:10:04 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 47M47c0BlYz2Zt; Mon, 25 Nov 2019 11:10:03 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909ed25519; t=1574680204; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=jFYmYeifHLsh7CgAipV88KetYI0vR/gxv0pC5qmIZAc=; b=mEl6sw3Y0THw0Yp3MVxmxQr4V+iGkdJm5gNaaRJpnZfq9GatEggGALkNX45d//qEeF5pnc 9pEB+ahN+WuJnPCg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=201909rsa; t=1574680204; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=jFYmYeifHLsh7CgAipV88KetYI0vR/gxv0pC5qmIZAc=; b=Z3GUvBr7fJ+vBkeis9R8mJjLYUCZX0bR9u+s/6MhiCXf86HA3IlcMZB1XarruvRoLpjSuY Xqvt87lnV2HrC352sGsyxVYEQuWrMBOx5pUknsttk6/rgW3dyHduP98jXf3IgHvrhPa8/m /BitR1u1ePujE+Innou36Yr7larTkzt2d8K20aPcShxt0ygXl1BzrNCe46IQL2TyIqFxfi 4PoSkTI7hJkYsFumQVSM3UD3tjOL/vR+L+Q11ZE1G3JJzIswn5jizK61VazJYih6bmw2Km ZO8fBLcnsOQr/0dc8OVahCXONGUt+yJRdS1nYBbO9A4IB4uc6DohJmCUEQm3fg== From: Michael Tremer <michael.tremer@ipfire.org> To: development@lists.ipfire.org Subject: [PATCH] clamav: Allow downloads to take up to 10 minutes Date: Mon, 25 Nov 2019 11:09:58 +0000 Message-Id: <20191125110958.14984-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk <development.lists.ipfire.org> List-Unsubscribe: <https://lists.ipfire.org/mailman/options/development>, <mailto:development-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/development/> List-Post: <mailto:development@lists.ipfire.org> List-Help: <mailto:development-request@lists.ipfire.org?subject=help> List-Subscribe: <https://lists.ipfire.org/mailman/listinfo/development>, <mailto:development-request@lists.ipfire.org?subject=subscribe> Cc: Tim Fitzgeorge <ipfb@tfitzgeorge.me.uk>, Michael Tremer <michael.tremer@ipfire.org> Errors-To: development-bounces@lists.ipfire.org Sender: "Development" <development-bounces@lists.ipfire.org> |
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
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 > >
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