[2/2] Soft-fail on network errors
Message ID | 1435098873-14208-2-git-send-email-michael.tremer@ipfire.org |
---|---|
State | Accepted |
Commit | 29a69850e9e172b5a868e3f2dc0ac63ba08871a8 |
Delegated to: | Stefan Schantl |
Headers |
Return-Path: <ddns-bounces@lists.ipfire.org> Received: from mail01.ipfire.org (mail01.tremer.info [172.28.1.200]) by septima.ipfire.org (Postfix) with ESMTP id 81400613A6 for <patchwork@ipfire.org>; Wed, 24 Jun 2015 00:33:39 +0200 (CEST) Received: from hedwig.ipfire.org (localhost [IPv6:::1]) by mail01.ipfire.org (Postfix) with ESMTP id 65FAD2170 for <patchwork@ipfire.org>; Wed, 24 Jun 2015 00:33:38 +0200 (CEST) Received: from localhost.localdomain (ip-84-118-121-150.unity-media.net [84.118.121.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 3936B1F3D; Wed, 24 Jun 2015 00:33:37 +0200 (CEST) From: Michael Tremer <michael.tremer@ipfire.org> To: stefan.schantl@ipfire.org Subject: [PATCH 2/2] Soft-fail on network errors Date: Tue, 23 Jun 2015 22:34:33 +0000 Message-Id: <1435098873-14208-2-git-send-email-michael.tremer@ipfire.org> X-Mailer: git-send-email 1.8.1 In-Reply-To: <1435098873-14208-1-git-send-email-michael.tremer@ipfire.org> References: <1435098873-14208-1-git-send-email-michael.tremer@ipfire.org> X-BeenThere: ddns@lists.ipfire.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List for the IPFire dynamic DNS client <ddns.lists.ipfire.org> List-Unsubscribe: <http://lists.ipfire.org/mailman/options/ddns>, <mailto:ddns-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/ddns/> List-Post: <mailto:ddns@lists.ipfire.org> List-Help: <mailto:ddns-request@lists.ipfire.org?subject=help> List-Subscribe: <http://lists.ipfire.org/mailman/listinfo/ddns>, <mailto:ddns-request@lists.ipfire.org?subject=subscribe> Cc: ddns@lists.ipfire.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ddns-bounces@lists.ipfire.org Sender: "ddns" <ddns-bounces@lists.ipfire.org> |
Message
Michael Tremer
June 24, 2015, 8:34 a.m. UTC
When an update could not be performed because of a network
error (host unreachable/no route to host) we should not
log an error to the database and hold off updates for a
long time.
Those errors are usually caused by local configuration
errors and the servers of the providers should not be
bothered with update requests as those won't reach them
any way.
The client will try to resend the update at the next
update call.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
src/ddns/providers.py | 6 ++++++
1 file changed, 6 insertions(+)