From e303bd182aa51e2ccb4baaeb55beb75b3c2126e8 Mon Sep 17 00:00:00 2001 From: "roberto@oneiric64" Date: Tue, 22 Nov 2011 11:15:13 +0100 Subject: [PATCH] report subscribed nodes timeout --- subscription.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subscription.c b/subscription.c index 0625f6af..a6ac0c80 100644 --- a/subscription.c +++ b/subscription.c @@ -81,6 +81,8 @@ struct uwsgi_subscribe_node *uwsgi_get_subscribe_node(struct uwsgi_subscribe_slo while(current_slot && node) { // is the node alive ? if (current - node->last_check > uwsgi.subscription_tolerance) { + if (node->death_mark == 0) + uwsgi_log("[uwsgi-subscription] %.*s => marking %.*s as failed (no announce received in %d seconds)\n", (int) keylen, key, (int) node->len, node->name, uwsgi.subscription_tolerance); node->death_mark = 1; } if (node->death_mark && node->reference == 0) {