From patchwork Mon Nov 25 11:09:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 2605 Return-Path: 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 ; 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 ; 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 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 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tim Fitzgeorge , Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 Fixes: #12246 Signed-off-by: Michael Tremer Reviewed-by: Peter Müller --- 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